Skip to content

Commit 008b87b

Browse files
committed
change test.yaml
1 parent f596706 commit 008b87b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/test.yaml

+15-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: test
2-
on: [push]
2+
on:
3+
push:
4+
branches: [ "master" ]
5+
pull_request:
6+
branches: [ "master" ]
37

48
jobs:
59
build:
@@ -9,15 +13,21 @@ jobs:
913
- uses: actions/checkout@v3
1014

1115
- name: Setup Go
12-
uses: actions/setup-go@v3
16+
uses: actions/setup-go@v4
1317
with:
1418
go-version: 1.20
1519

16-
- name: Install dependencies
17-
run: go get .
20+
- name: Go Tidy
21+
run: go mod tidy && git diff --exit-code
22+
23+
- name: Go Mod
24+
run: go mod download
25+
26+
- name: Go Mod Verify
27+
run: go mod verify
1828

1929
- name: Build
2030
run: go build -v ./...
2131

2232
- name: Run unit tests
23-
run: make unit-test
33+
run: go test -v ./...

0 commit comments

Comments
 (0)