Skip to content

Merge pull request #770 from fluxcd/dependabot/github_actions/ci-2057… #2902

Merge pull request #770 from fluxcd/dependabot/github_actions/ci-2057…

Merge pull request #770 from fluxcd/dependabot/github_actions/ci-2057… #2902

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
- libgi2*
permissions: read-all
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: 1.22.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
env:
SKIP_COSIGN_VERIFICATION: true
run: make test
- 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