Add a Helm chart for deploying host-check as a Job #100
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: static-analysis | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
- 'preview-[0-9]+\.[0-9]+\.[0-9]+' | |
paths-ignore: | |
- '.gitignore' | |
- '*.md' | |
push: | |
branches: | |
- 'gh-actions*' | |
jobs: | |
helm: | |
runs-on: ubuntu-latest | |
name: 'helm-sa' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.7' | |
- uses: azure/setup-helm@v3 | |
with: | |
version: '3.10.0' | |
- uses: helm/chart-testing-action@v2.3.1 | |
- name: Run chart-testing (list-changed) | |
run: | | |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | |
if [[ -n "$changed" ]]; then | |
echo "::set-output name=changed::true" | |
fi | |
- name: Run chart-testing (lint) | |
run: ct lint --config .github/config/ct.yml --target-branch ${{ github.event.repository.default_branch }} | |
- name: Run chart-testing (check-version-increment) | |
run: ct lint --config .github/config/ct-version-increment.yml --target-branch ${{ github.event.repository.default_branch }} | |
- name: Run check-dependency-version-increment | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install PyYAML | |
scripts/check-dependency-version-increment | |
shellcheck: | |
runs-on: ubuntu-latest | |
name: 'bash-sa (shellcheck)' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: ludeeus/action-shellcheck@1.1.0 | |
with: | |
scandir: 'scripts/' |