We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f596706 commit 008b87bCopy full SHA for 008b87b
.github/workflows/test.yaml
@@ -1,5 +1,9 @@
1
name: test
2
-on: [push]
+on:
3
+ push:
4
+ branches: [ "master" ]
5
+ pull_request:
6
7
8
jobs:
9
build:
@@ -9,15 +13,21 @@ jobs:
13
- uses: actions/checkout@v3
10
14
11
15
- name: Setup Go
12
- uses: actions/setup-go@v3
16
+ uses: actions/setup-go@v4
17
with:
18
go-version: 1.20
19
- - name: Install dependencies
- 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
28
29
- name: Build
30
run: go build -v ./...
31
32
- name: Run unit tests
- run: make unit-test
33
+ run: go test -v ./...
0 commit comments