Skip to content

Commit c989c85

Browse files
committed
ci: add job to ensure that the go.sum is up to date with the go.mod file
Signed-off-by: deadprogram <ron@hybridgroup.com>
1 parent 66c3cb8 commit c989c85

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/linux.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,22 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15+
go-mod-tidy:
16+
# Check that go.sum is up to date.
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
- name: Install Go
22+
uses: actions/setup-go@v6
23+
with:
24+
go-version: '1.26.4'
25+
cache: true
26+
- name: Run go mod tidy
27+
run: go mod tidy
28+
- name: Check go.mod and go.sum are up to date
29+
run: git diff --exit-code
30+
1531
build-linux:
1632
# Build Linux binaries, ready for release.
1733
# This runs inside an Alpine Linux container so we can more easily create a

0 commit comments

Comments
 (0)