-
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (30 loc) · 1.01 KB
/
tidy.yml
File metadata and controls
33 lines (30 loc) · 1.01 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 `go mod tidy` has been run
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@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
with:
go-version: ${{ matrix.version }}
- name: Install `tidied`
run: go install gitlab.com/jamietanna/tidied@latest
- name: Check for no untracked files
run: tidied -verbose