From d200198f0f194908e2fa80af7c49ae9e64bfe704 Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Tue, 20 Aug 2024 07:30:16 +0200 Subject: [PATCH] Implement lint CI and cleanup files (#28) Signed-off-by: Jose Luis Rivero Co-authored-by: Akash Vibhute --- .github/workflows/lint.yml | 30 ++++++++++++++++++++++++++++++ rmf-deployment/Chart.yaml | 2 +- rmf-deployment/values.yaml | 1 - 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c8adce0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,30 @@ +name: Lint all charts + +on: [ pull_request, push ] + +jobs: + lint-test: + runs-on: ubuntu-latest + env: + chart_configuration: --charts rmf-deployment/ + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Helm + uses: azure/setup-helm@v3 + with: + version: v3.11.2 + + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + check-latest: true + + - name: Set up chart-testing + uses: helm/chart-testing-action@v2.4.0 + + - name: Run chart-testing (lint) + run: ct lint ${chart_configuration} diff --git a/rmf-deployment/Chart.yaml b/rmf-deployment/Chart.yaml index 02023b0..677edd4 100644 --- a/rmf-deployment/Chart.yaml +++ b/rmf-deployment/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: rmf-deployment -description: Helm Chart for a basic RMF deployment +description: Helm Chart for a basic RMF deployment version: 0.1.0 appVersion: 0.1.0 maintainers: diff --git a/rmf-deployment/values.yaml b/rmf-deployment/values.yaml index b663754..5bc73b2 100644 --- a/rmf-deployment/values.yaml +++ b/rmf-deployment/values.yaml @@ -1,4 +1,3 @@ - replicas: 1 registryUrl: 'ghcr.io/open-rmf' builder_ns: 'ghcr.io/open-rmf/rmf_deployment_template'