File tree 1 file changed +30
-1
lines changed
1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 28
28
with :
29
29
version : latest
30
30
only-new-issues : true
31
- args : --timeout=3m
31
+ args : --timeout=3m
32
+
33
+ unit-test :
34
+ name : unit-test
35
+ strategy :
36
+ matrix :
37
+ go-version : [ 1.19.8, 1.20.3 ]
38
+ os : [ ubuntu-latest, windows-latest, macos-latest ]
39
+ runs-on : ${{ matrix.os }}
40
+ steps :
41
+ - uses : actions/setup-go@v4
42
+ with :
43
+ go-version : ${{ matrix.go-version }}
44
+ - uses : actions/checkout@v3
45
+ - uses : actions/cache@v3
46
+ with :
47
+ # In order:
48
+ # * Module download cache
49
+ # * Build cache (Linux)
50
+ # * Build cache (Mac)
51
+ # * Build cache (Windows)
52
+ path : |
53
+ ~/go/pkg/mod
54
+ ~/.cache/go-build
55
+ ~/Library/Caches/go-build
56
+ ~\AppData\Local\go-build
57
+ key : ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
58
+ restore-keys : |
59
+ ${{ runner.os }}-go-${{ matrix.go-version }}-
60
+ - run : go test ./... --tags unit
You can’t perform that action at this time.
0 commit comments