We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
go mod tidy
1 parent 78dbb59 commit 6dcc631Copy full SHA for 6dcc631
.github/workflows/go_mod_tidy.yml
@@ -0,0 +1,35 @@
1
+name: go mod tidy
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
+ - "*"
10
11
+concurrency:
12
+ group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress: true
14
15
+jobs:
16
+ check:
17
+ runs-on: ubuntu-latest
18
19
+ steps:
20
+ - name: Check out code
21
+ uses: actions/checkout@v3
22
+ with:
23
+ fetch-depth: 0
24
25
+ - name: Set up Go
26
+ uses: actions/setup-go@v3
27
28
+ go-version-file: go.mod
29
30
+ - name: check 'go mod tidy' is clean
31
+ run: |
32
+ go mod tidy
33
+ echo
34
35
+ git diff --name-only --exit-code || (echo "Please run 'go mod tidy'."; exit 1)
0 commit comments