Skip to content

Commit

Permalink
CI: update helm-chart-testing (#6720)
Browse files Browse the repository at this point in the history
* Bump yamllint + yamale
* Bump python

Also fixes this error in the "Set up chart-testing" step:
```
ERROR: Could not find a version that satisfies the requirement yamllint==1.27.1 (from versions: none)
ERROR: No matching distribution found for yamllint==1.27.1
WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
```
  • Loading branch information
snazy authored May 1, 2023
1 parent 60154a4 commit 750ca91
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ jobs:
with:
fetch-depth: 0

# Skip remaining steps, if version is not available
# Skip remaining steps, if current Nessie release version is not available
- name: Precheck
run: |
EXPECT_VERSION="$(cat helm/nessie/Chart.yaml | grep -E '^version: ')"
Expand All @@ -834,18 +834,28 @@ jobs:
if: env.WF_EXEC != 'false'
uses: azure/setup-helm@v3
with:
version: v3.8.1
- uses: actions/setup-python@v4
# https://helm.sh/docs/topics/version_skew/
version: 'v3.11.3'

- name: Setup Python
if: env.WF_EXEC != 'false'
uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.11'

- name: Set up chart-testing
if: env.WF_EXEC != 'false'
uses: helm/[email protected]
with:
# https://github.com/adrienverge/yamllint/tags
# default is 1.27.1, but leads to Python install issues
yamllint_version: 1.31.0
# https://github.com/23andMe/Yamale/releases
# default is 3.0.4, just bump to current latest patch version
yamale_version: 3.0.8

- name: Run chart-testing (list-changed)
if: env.WF_EXEC != 'false'
id: list-changed
run: |
ct list-changed --target-branch ${{ github.event.repository.default_branch }}
Expand All @@ -857,6 +867,8 @@ jobs:
if: env.WF_EXEC != 'false'
uses: medyagh/[email protected]
with:
# If required, use the matrix strategy against this option to test against multiple Kubernetes versions:
kubernetes-version: stable
cache: false

- name: Show pods
Expand Down

0 comments on commit 750ca91

Please sign in to comment.