Skip to content

Merge pull request #237 from fluxcd/fix-commic-panic #806

Merge pull request #237 from fluxcd/fix-commic-panic

Merge pull request #237 from fluxcd/fix-commic-panic #806

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
jobs:
vet:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Restore Go cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup Go
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.20.x
- name: Run vet
run: make tidy fmt vet
- name: Check if working tree is dirty
run: |
if [[ $(git diff --stat) != '' ]]; then
echo "run 'make tidy fmt vet' and commit changes"
exit 1
fi