Bump sigstore/cosign-installer from c3667d99424e7e6047999fb6246c0da843953c65 to 6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #55
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@v3 | |
- 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.9.0' ]]; then | |
echo 'should be v3.9.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@v3 | |
- name: Install chart-testing | |
uses: ./ | |
with: | |
version: 'v3.7.1' | |
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.7.1' ]]; then | |
echo 'should be v3.7.1' | |
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 |