Commit e82c700 1 parent 834d13d commit e82c700 Copy full SHA for e82c700
File tree 5 files changed +58
-47
lines changed
5 files changed +58
-47
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Go format check
2
+ on :
3
+ pull_request :
4
+ types : ['opened', 'synchronize']
5
+
6
+ jobs :
7
+ run-tests :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
11
+
12
+ - uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
13
+ with :
14
+ go-version-file : ./.go-version
15
+
16
+ - name : Run go format
17
+ run : |-
18
+ files=$(gofmt -s -l .)
19
+ if [ -n "$files" ]; then
20
+ echo >&2 "The following file(s) are not gofmt compliant:"
21
+ echo >&2 "$files"
22
+ exit 1
23
+ fi
Original file line number Diff line number Diff line change
1
+ name : Unit tests (Go 1.19)
2
+ on :
3
+ pull_request :
4
+ types : ['opened', 'synchronize']
5
+
6
+ jobs :
7
+ run-tests :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
11
+
12
+ - uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
13
+ with :
14
+ go-version : 1.19
15
+
16
+ - name : Run unit tests
17
+ run : make test
Original file line number Diff line number Diff line change
1
+ name : Unit tests (Go 1.20+)
2
+ on :
3
+ pull_request :
4
+ types : ['opened', 'synchronize']
5
+
6
+ jobs :
7
+ run-tests :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
11
+
12
+ - uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
13
+ with :
14
+ go-version : 1.22
15
+
16
+ - name : Run unit tests
17
+ run : make test
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ default: test
2
2
3
3
test :
4
4
go vet ./...
5
- go test -race ./...
5
+ go test -v - race ./...
6
6
7
7
updatedeps :
8
8
go get -f -t -u ./...
You can’t perform that action at this time.
0 commit comments