File tree Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Expand file tree Collapse file tree 2 files changed +19
-12
lines changed Original file line number Diff line number Diff line change 55
66jobs :
77
8- ci :
9- uses : ./.github/workflows/ci .yml
8+ test :
9+ uses : ./.github/workflows/test .yml
1010
1111 bump :
1212 runs-on : ubuntu-latest
1313
1414 needs :
15- - ci
15+ - test
1616
1717 steps :
1818 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1- name : CI
1+ name : Test
22
33on :
44 push :
@@ -20,17 +20,24 @@ jobs:
2020 with :
2121 go-version : stable
2222
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 : |
2538 go mod tidy
2639 git diff --exit-code go.mod
2740 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 ./...
3441
3542 conventional-commits :
3643 if : github.event_name == 'pull_request' # Only check PRs.
You can’t perform that action at this time.
0 commit comments