File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 8
8
strategy :
9
9
matrix :
10
10
os : [ubuntu-latest, windows-latest, macos-latest]
11
+
11
12
steps :
12
13
- name : Install Go
13
14
uses : actions/setup-go@v1
@@ -36,16 +37,33 @@ jobs:
36
37
run : |
37
38
make test
38
39
39
- lint :
40
- name : Lint
40
+ checks :
41
+ name : Checks
41
42
runs-on : ubuntu-latest
42
43
steps :
43
44
- name : Install Go
44
45
uses : actions/setup-go@v1
45
46
with :
46
47
go-version : 1.12
48
+
47
49
- name : Checkout
48
50
uses : actions/checkout@v1
51
+
52
+ - name : Go mod
53
+ env :
54
+ DIFF_PATH : " go.mod go.sum"
55
+ run : |
56
+ go mod tidy
57
+ DIFF=$(git status --porcelain -- $DIFF_PATH)
58
+ if [ "$DIFF" ]; then
59
+ echo
60
+ echo "These files were modified:"
61
+ echo
62
+ echo "$DIFF"
63
+ echo
64
+ exit 1
65
+ fi
66
+
49
67
- name : Lint
50
68
run : |
51
69
make lint
You can’t perform that action at this time.
0 commit comments