Skip to content

Bump actions/checkout from 3 to 4 #191

Bump actions/checkout from 3 to 4

Bump actions/checkout from 3 to 4 #191

Workflow file for this run

name: ci
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_run:
workflows: [image]
types: [completed]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: magnetikonline/action-golang-cache@v3
with: {go-version-file: go.mod}
- run: make test
- run: go tool cover -func coverall.out
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: magnetikonline/action-golang-cache@v3
with: {go-version-file: go.mod}
- run: make clean && make generate
- name: Ensure generated code is already checked in
if: success()
run: |
files="$(git diff --name-only)"
if [ -z "$files" ]; then exit 0; fi
echo "Files with diffs:"
echo "$files"
echo
echo
git diff
exit 1