File tree 2 files changed +17
-7
lines changed
2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,27 @@ jobs:
11
11
build :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/setup-go@master
15
- with :
16
- go-version : " 1.16"
17
- - uses : actions/checkout@master
14
+ - name : Checkout
15
+ uses : actions/checkout@master
18
16
with :
19
17
fetch-depth : 1
20
- - run : make test
18
+ - name : Detect go version
19
+ id : go-version
20
+ run : echo "::set-output name=VERSION::$(cat .go-version)"
21
+ - name : Setup go
22
+ uses : actions/setup-go@master
23
+ with :
24
+ stable : ' false'
25
+ go-version : ${{ steps.go-version.outputs.VERSION }}
26
+ - name : Run test
27
+ run : make test
21
28
env :
22
29
GOARGS : " -v -race"
23
30
GOMAXPROCS : 8
24
- - uses : codecov/codecov-action@v1
31
+ - name : Report coverage
32
+ uses : codecov/codecov-action@v1
25
33
with :
26
34
token : ${{ secrets.CODECOV_TOKEN }}
27
35
file : ./tmp/cover.out
28
- - run : make demo
36
+ - name : Run demo
37
+ run : make demo
Original file line number Diff line number Diff line change
1
+ 1.18
You can’t perform that action at this time.
0 commit comments