File tree Expand file tree Collapse file tree 1 file changed +6
-16
lines changed
Expand file tree Collapse file tree 1 file changed +6
-16
lines changed Original file line number Diff line number Diff line change 44 test :
55 strategy :
66 matrix :
7- go-version : [1.14.x]
7+ go-version : [1.14.x, 1.19.x ]
88 platform : [ubuntu-latest, macos-latest]
99 runs-on : ${{ matrix.platform }}
1010 steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v3
1113 - name : Install Go
12- uses : actions/setup-go@v1
14+ uses : actions/setup-go@v4
1315 with :
1416 go-version : ${{ matrix.go-version }}
15- - name : setup env
16- run : |
17- echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
18- echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
19- shell : bash
20- - name : Checkout code
21- uses : actions/checkout@v2
22- - name : cache
23- uses : actions/cache@v1
24- with :
25- path : ~/go/pkg/mod
26- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27- restore-keys : |
28- ${{ runner.os }}-go-
2917 - name : Run test code
3018 run : go test ./...
19+ - name : Build
20+ run : go build
You can’t perform that action at this time.
0 commit comments