Skip to content

Commit

Permalink
Lint all changed charts
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenh committed Aug 28, 2024
1 parent 2881c53 commit bb41974
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,8 @@ env:
PYTHON_VERSION: 3.x

jobs:
diff:
runs-on: ubuntu-latest
outputs:
charts: ${{ steps.changes.outputs.changes }}
steps:
-
name: Find changed charts
id: changes
uses: dorny/paths-filter@v3
with:
filters: |
charts/aserto:
- 'charts/aserto/**'
charts/aserto-lib:
- 'charts/aserto-lib/**'
charts/authorizer:
- 'charts/authorizer/**'
charts/console:
- 'charts/console/**'
charts/directory:
- 'charts/directory/**'
charts/discovery:
- 'charts/discovery/**'
charts/scim:
- 'charts/scim/**'
lint:
runs-on: ubuntu-latest
needs: diff
if: fromJSON(needs.diff.outputs.charts)
env:
CHARTS: ${{ join(fromJSON(needs.diff.outputs.charts)) }}
steps:
-
name: Read Configuration
Expand Down Expand Up @@ -75,16 +46,5 @@ jobs:
name: Lint ${{ matrix.chart.name }}
run: |
ct lint --config ct.yaml \
--charts '${{ env.CHARTS }}' \
--target-branch ${{ github.event.repository.default_branch }} \
--helm-repo-extra-args "aserto-helm=-u gh -p ${READ_WRITE_TOKEN}"
# test-changes:
# runs-on: ubuntu-latest
# container: python:3
# needs: detect-changes
# strategy:
# matrix:
# chart: ${{ fromJSON(needs.detect-changes.outputs.charts) }}


2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ push:
.PHONY: lint
lint:
@echo -e "$(ATTN_COLOR)==> $@ $(NO_COLOR)"
ct lint --config ct.yaml --helm-repo-extra-args "aserto-helm=-u gh -p ${GITHUB_TOKEN}"
@ct lint --config ct.yaml --helm-repo-extra-args "aserto-helm=-u gh -p ${GITHUB_TOKEN}"


.PHONY: release
Expand Down

0 comments on commit bb41974

Please sign in to comment.