Skip to content

Merge pull request #1264 from fluxcd/release-main #4577

Merge pull request #1264 from fluxcd/release-main

Merge pull request #1264 from fluxcd/release-main #4577

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
permissions: read-all
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
chunk: ["1/4", "2/4", "3/4", "4/4"]
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: 1.26.x
# https://github.com/actions/setup-go/blob/main/docs/adrs/0000-caching-dependencies.md#example-of-real-use-cases
cache-dependency-path: |
**/go.sum
**/go.mod
- name: Run tests (chunk ${{ matrix.chunk }})
env:
SKIP_COSIGN_VERIFICATION: true
run: make test-chunk CHUNK=${{ matrix.chunk }}
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
git --no-pager diff
echo 'run make all and commit changes'
exit 1
fi