Update whitehall image tag to d55b92aafba661c562a2d582e4f4f657613a416… #215591
Workflow file for this run
This file contains hidden or 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: linting | |
| on: [push] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.repository }}-${{ github.ref_name }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| jobs: | |
| render-charts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.head_ref }} | |
| show-progress: false | |
| - name: Run govuk-app-render | |
| run: ./govuk-app-render.sh | |
| - name: Archive rendered charts | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: rendered-charts | |
| path: output/ | |
| retention-days: 1 | |
| helm-lint: | |
| runs-on: ubuntu-latest | |
| needs: render-charts | |
| steps: | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: rendered-charts | |
| path: . | |
| - uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 | |
| - name: helm lint | |
| run: | | |
| EXITCODE=0 | |
| for env in values/*; do | |
| [ -d "$env" ] || continue | |
| for chart in "$env"/*; do | |
| [ -d "$chart" ] || continue | |
| chart_name=$(basename "$chart") | |
| for app in "$chart"/*; do | |
| echo "helm lint for app $app with chart $chart_name" | |
| if ! output=$(helm lint --quiet -f "$app" "raw-charts/$chart_name"); then | |
| echo "$output" | |
| EXITCODE=1 | |
| fi | |
| done | |
| done | |
| done | |
| exit "$EXITCODE" | |
| kubeconform: | |
| runs-on: ubuntu-latest | |
| needs: render-charts | |
| steps: | |
| - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | |
| with: | |
| name: rendered-charts | |
| path: . | |
| - name: kubeconform | |
| uses: docker://ghcr.io/yannh/kubeconform:latest-alpine | |
| with: | |
| entrypoint: /kubeconform | |
| args: > | |
| -kubernetes-version 1.34.6 | |
| -schema-location default | |
| -schema-location | |
| "https://alphagov.github.io/govuk-crd-library/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json" | |
| -ignore-filename-pattern ".*/Chart.yaml" | |
| -summary | |
| -strict | |
| rendered-charts | |
| shellcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| show-progress: false | |
| - uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # 2.0.0 | |
| env: | |
| SHELLCHECK_OPTS: -xP SCRIPTDIR | |
| yamllint: | |
| permissions: | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| show-progress: false | |
| - run: make lint | |
| promtool: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| show-progress: false | |
| - name: Run promtool checks | |
| uses: ./.github/actions/promtool | |
| with: | |
| args: > | |
| check rules $(find charts/monitoring-config/rules -name '*.yaml' \ | |
| -not -name '*_tests.yaml') | |
| - name: Run promtool tests | |
| uses: ./.github/actions/promtool | |
| with: | |
| args: test rules $(find charts/monitoring-config/rules -name '*_tests.yaml') |