Unify docker build and drop support for linux/arm/v7
#919
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: test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'master' | |
| permissions: | |
| contents: read | |
| env: | |
| HELM_VERSION: 4.2.0 | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/runner-cleanup | |
| - name: Setup Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: 1.26.x | |
| cache-dependency-path: | | |
| **/go.sum | |
| **/go.mod | |
| - name: Setup Flux Schema CLI | |
| uses: fluxcd/flux-schema/actions/setup@c90d3f83707614d21c20226183a9e714d8ba9626 # v0.3.0 | |
| - name: Setup Helm | |
| uses: azure/setup-helm@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0 | |
| with: | |
| version: v${{ env.HELM_VERSION }} | |
| - name: Setup CUE | |
| uses: cue-lang/setup-cue@a93fa358375740cd8b0078f76355512b9208acb1 # v1.0.1 | |
| - name: Setup Timoni | |
| uses: stefanprodan/timoni/actions/setup@c68e33a34f17c7ca93c7fc6717d61a14819276dc # v0.26.0 | |
| - name: Run unit tests | |
| run: make test | |
| - name: Validate Helm chart | |
| run: | | |
| helm lint ./charts/podinfo/ | |
| helm template ./charts/podinfo/ | flux-schema validate --verbose | |
| - name: Validate Kustomize overlay | |
| run: | | |
| kubectl kustomize ./kustomize/ | flux-schema validate --verbose | |
| - name: Verify CUE formatting | |
| working-directory: ./timoni/podinfo | |
| run: | | |
| cue fmt ./... | |
| status=$(git status . --porcelain) | |
| [[ -z "$status" ]] || { | |
| echo "CUE files are not correctly formatted" | |
| echo "$status" | |
| git diff | |
| exit 1 | |
| } | |
| - name: Validate Timoni module | |
| working-directory: ./timoni/podinfo | |
| run: | | |
| timoni mod lint . | |
| timoni build podinfo . -f debug_values.cue | flux-schema validate --skip-missing-schemas --verbose | |
| - name: Check if working tree is dirty | |
| run: | | |
| if [[ $(git diff --stat) != '' ]]; then | |
| echo 'run make test and commit changes' | |
| exit 1 | |
| fi |