Bump the actions group across 1 directory with 3 updates #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-chart-testing-action | |
on: | |
pull_request: | |
jobs: | |
test_ct_action: | |
runs-on: ubuntu-latest | |
name: Install chart-testing and test presence in path | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Install chart-testing | |
uses: ./ | |
- name: Check install! | |
run: | | |
ct version | |
CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) | |
ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) | |
if [[ $ACTUAL_VERSION != 'v3.11.0' ]]; then | |
echo 'should be v3.11.0' | |
exit 1 | |
else | |
exit 0 | |
fi | |
shell: bash | |
- name: Check root directory | |
run: | | |
if [[ $(git diff --stat) != '' ]]; then | |
echo 'should be clean' | |
exit 1 | |
else | |
exit 0 | |
fi | |
test_ct_action_custom: | |
runs-on: ubuntu-latest | |
name: Install Custom chart-testing and test presence in path | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Install chart-testing | |
uses: ./ | |
with: | |
version: 'v3.8.0' | |
yamllint_version: '1.27.1' | |
yamale_version: '3.0.4' | |
- name: Check install! | |
run: | | |
ct version | |
CT_VERSION_OUTPUT=$(ct version 2>&1 /dev/null) | |
ACTUAL_VERSION=$(echo "$CT_VERSION_OUTPUT" | grep Version | rev | cut -d ' ' -f1 | rev) | |
if [[ $ACTUAL_VERSION != 'v3.8.0' ]]; then | |
echo 'should be v3.8.0' | |
exit 1 | |
else | |
exit 0 | |
fi | |
shell: bash | |
- name: Check root directory | |
run: | | |
if [[ $(git diff --stat) != '' ]]; then | |
echo 'should be clean' | |
exit 1 | |
else | |
exit 0 | |
fi | |
test_ct_action_with_helm: | |
runs-on: ubuntu-latest | |
name: run action to test a helm chart | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
fetch-depth: 0 | |
- name: Set up Helm | |
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 | |
with: | |
version: v3.14.4 | |
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: '3.x' | |
check-latest: true | |
- name: Install chart-testing | |
uses: ./ | |
- run: | | |
sed -i "s/version: .*/version: 2.0.0/" testdata/simple-deployment/Chart.yaml | |
cat testdata/simple-deployment/Chart.yaml | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --chart-dirs=testdata --target-branch ${{ github.event.repository.default_branch }}) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Run chart-testing (lint) | |
if: steps.list-changed.outputs.changed == 'true' | |
run: ct lint --chart-dirs=testdata --target-branch ${{ github.event.repository.default_branch }} | |
- name: Create kind cluster | |
if: steps.list-changed.outputs.changed == 'true' | |
uses: helm/[email protected] | |
- name: Run chart-testing (install) | |
if: steps.list-changed.outputs.changed == 'true' | |
run: ct install --chart-dirs=testdata --target-branch ${{ github.event.repository.default_branch }} |