File tree 2 files changed +19
-12
lines changed 2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 5
5
6
6
jobs :
7
7
8
- ci :
9
- uses : ./.github/workflows/ci .yml
8
+ test :
9
+ uses : ./.github/workflows/test .yml
10
10
11
11
bump :
12
12
runs-on : ubuntu-latest
13
13
14
14
needs :
15
- - ci
15
+ - test
16
16
17
17
steps :
18
18
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1
- name : CI
1
+ name : Test
2
2
3
3
on :
4
4
push :
@@ -20,17 +20,24 @@ jobs:
20
20
with :
21
21
go-version : stable
22
22
23
- - name : Check go mod
24
- run : |
23
+ - run : go get -v -t -d ./...
24
+ - run : gofmt -s -d .
25
+ - run : go build -v
26
+ - run : go test -test.v -race -cover ./...
27
+
28
+ go-mod-tidy :
29
+ runs-on : ubuntu-latest
30
+
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+ - uses : actions/setup-go@v5
34
+ with :
35
+ go-version : stable
36
+
37
+ - run : |
25
38
go mod tidy
26
39
git diff --exit-code go.mod
27
40
git diff --exit-code go.sum
28
- - name : gofmt
29
- run : gofmt -s -d .
30
- - name : go build
31
- run : go build -v
32
- - name : go test
33
- run : go test -test.v -race -cover ./...
34
41
35
42
conventional-commits :
36
43
if : github.event_name == 'pull_request' # Only check PRs.
You can’t perform that action at this time.
0 commit comments