-
-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (30 loc) · 1.02 KB
/
generate.yml
File metadata and controls
33 lines (30 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Ensure generated files are up-to-date
on: [ push, pull_request ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
# perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
matrix:
version:
# versions of Go that this module can still be built with (and therefore are "supported" by this project)
- "1.20"
- "1.21"
- "1.22"
- "1.23"
# actively supported versions of Go
- "1.24"
- "1.25"
steps:
- name: Check out source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: ${{ matrix.version }}
- name: Run `make generate`
run: make generate
- name: Check for no untracked files
run: git status && git diff-index --quiet HEAD --