Skip to content

Commit

Permalink
Update lint.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ypoplavs authored Mar 7, 2024
1 parent e3305d3 commit c86ee25
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
## Reference: https://github.com/helm/chart-testing-action
name: Lint
on: pull_request
on:
pull_request:
branches:
- develop

permissions:
contents: write
Expand All @@ -11,19 +14,19 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.10.1
version: v3.14.1

- name: Set up python
uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c0 # v4.6.1
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: '3.10'
check-latest: true

- name: Setup Chart Linting
uses: helm/[email protected]
Expand All @@ -34,12 +37,12 @@ jobs:
id: list-changed
run: |
## If executed with debug this won't work anymore.
changed=$(ct --target-branch ${{ github.event.pull_request.head.ref }} --config ./.github/configs/ct-lint.yaml list-changed)
changed=$(ct --target-branch develop --config ./.github/configs/ct-lint.yaml list-changed)
charts=$(echo "$changed" | tr '\n' ' ' | xargs)
if [[ -n "$changed" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT
echo "changed_charts=$charts" >> $GITHUB_OUTPUT
fi
- name: Run chart-testing (lint)
run: ct lint --debug --target-branch ${{ github.event.pull_request.head.ref }} --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml
run: ct lint --debug --target-branch develop --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml

0 comments on commit c86ee25

Please sign in to comment.