Skip to content

Commit 8e89baf

Browse files
committed
ci: Minor tweaks
* Rename workflow * Run go mod check separately
1 parent 040cb97 commit 8e89baf

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

.github/workflows/bump.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55

66
jobs:
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

.github/workflows/ci.yml renamed to .github/workflows/test.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Test
22

33
on:
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.

0 commit comments

Comments
 (0)