Skip to content

Commit 45dd431

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 088a660 commit 45dd431

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/linux.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ 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-slim
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
with:
22+
submodules: true
23+
- name: Install Go
24+
uses: actions/setup-go@v6
25+
with:
26+
go-version: '1.26.4'
27+
cache: true
28+
- name: Run go mod tidy
29+
run: go mod tidy
30+
- name: Check go.mod and go.sum are up to date
31+
run: git diff --exit-code
32+
1533
build-linux:
1634
# Build Linux binaries, ready for release.
1735
# This runs inside an Alpine Linux container so we can more easily create a

0 commit comments

Comments
 (0)