Skip to content

Commit 894d97f

Browse files
authored
Update go.yml
1 parent 633b857 commit 894d97f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/go.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
9-
name: Build & Test
8+
setup:
9+
name: Setup
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -32,9 +32,21 @@ jobs:
3232
- name: Install dependencies
3333
run: go mod tidy
3434

35-
- name: Run tests
35+
test:
36+
name: Test
37+
runs-on: ubuntu-latest
38+
needs: setup
39+
40+
steps:
41+
- name: Run Go test
3642
run: go test ./... -v
3743

44+
build:
45+
name: Build
46+
runs-on: ubuntu-latest
47+
needs: test
48+
49+
steps:
3850
- name: Build binaries
3951
run: |
4052
mkdir -p dist

0 commit comments

Comments
 (0)