mirror of
https://github.com/Azure/setup-helm.git
synced 2025-09-04 02:56:32 +00:00
Bumps the actions group in /.github/workflows with 1 update: [actions/checkout](https://github.com/actions/checkout).
Updates `actions/checkout` from 4.2.2 to 5.0.0
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](11bd71901b...08c6903cd8
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 5.0.0
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
97 lines
3.3 KiB
YAML
97 lines
3.3 KiB
YAML
name: 'Trigger Integration tests'
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- 'releases/*'
|
|
jobs:
|
|
trigger-integration-tests:
|
|
name: Trigger Integration tests
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- ubuntu-24.04-arm
|
|
- macos-latest # arm
|
|
- macos-13 # x64
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
HELM_3_18_4: 'v3.18.4'
|
|
HELM_3_18_0: 'v3.18.0'
|
|
HELM_NO_V: '3.18.4'
|
|
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- name: npm install and build
|
|
id: action-npm-build
|
|
run: |
|
|
echo $PR_BASE_REF
|
|
if [[ $PR_BASE_REF != releases/* ]]; then
|
|
npm install
|
|
npm run build
|
|
fi
|
|
- name: Setup helm
|
|
uses: ./
|
|
with:
|
|
version: ${{ env.HELM_3_18_4 }}
|
|
- name: Validate helm 3.18.4
|
|
run: |
|
|
if [[ $(helm version) != *$HELM_3_18_4* ]]; then
|
|
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.18.4"
|
|
echo "HELM VERSION OUTPUT: $(helm version)"
|
|
exit 1
|
|
else
|
|
echo "HELM VERSION $HELM_3_18_4 INSTALLED SUCCESSFULLY"
|
|
fi
|
|
- name: Setup helm 3.18.0
|
|
uses: ./
|
|
with:
|
|
version: ${{ env.HELM_3_18_0 }}
|
|
- name: Validate 3.18.0
|
|
run: |
|
|
if [[ $(helm version) != *$HELM_3_18_0* ]]; then
|
|
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN v3.18.0"
|
|
echo "HELM VERSION OUTPUT: $(helm version)"
|
|
exit 1
|
|
else
|
|
echo "HELM VERSION $HELM_3_18_0 INSTALLED SUCCESSFULLY"
|
|
fi
|
|
- name: Setup helm 3.18.4 with no v in version
|
|
uses: ./
|
|
with:
|
|
version: ${{ env.HELM_NO_V }}
|
|
- name: Validate 3.18.4 without v in version
|
|
run: |
|
|
if [[ $(helm version) != *$HELM_NO_V* ]]; then
|
|
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN 3.18.4"
|
|
echo "HELM VERSION OUTPUT: $(helm version)"
|
|
exit 1
|
|
else
|
|
echo "HELM VERSION $HELM_NO_V INSTALLED SUCCESSFULLY"
|
|
fi
|
|
- name: Setup helm latest version
|
|
uses: ./
|
|
with:
|
|
version: latest
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Validate latest
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
HELM_LATEST=$(gh release list \
|
|
--repo helm/helm \
|
|
--exclude-drafts \
|
|
--exclude-pre-releases \
|
|
--json name,isLatest \
|
|
--jq '.[] | select(.isLatest)|.name' | awk '{print $2}')
|
|
|
|
if [[ $(helm version) != *$HELM_LATEST* ]]; then
|
|
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN $HELM_LATEST"
|
|
echo "HELM VERSION OUTPUT: $(helm version)"
|
|
exit 1
|
|
else
|
|
echo "HELM VERSION $HELM_LATEST INSTALLED SUCCESSFULLY"
|
|
fi
|