Merge pull request #78 from garethahealy/hadolint #32
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 set-helm-version | |
on: | |
push: | |
paths: | |
- .github/workflows/set-helm-version.yaml | |
- set-helm-version/** | |
pull_request: | |
paths: | |
- .github/workflows/set-helm-version.yaml | |
- set-helm-version/** | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
set-helm-version: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: hadolint/[email protected] | |
with: | |
dockerfile: set-helm-version/Dockerfile | |
- name: set-helm-version | |
uses: ./set-helm-version | |
with: | |
path: set-helm-version/_test | |
chart_version: v1.5.0 | |
app_version: v1.6.0 | |
- name: Check that the chart was modified as expected | |
run: | | |
if grep -Fxq "version: v1.5.0" set-helm-version/_test/Chart.yaml | |
then | |
echo "Found expected chart version" | |
else | |
echo "Did not find expected chart version!" | |
exit 1 | |
fi | |
if grep -Fxq "appVersion: v1.6.0" set-helm-version/_test/Chart.yaml | |
then | |
echo "Found expected app version" | |
else | |
echo "Did not find expected app version!" | |
exit 1 | |
fi |