Skip to content

Commit 1e18819

Browse files
author
Shuo
committed
U: go.yml
1 parent ecb91da commit 1e18819

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/go.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,21 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515

16-
- name: Set up Go 1.13
17-
uses: actions/setup-go@v1
18-
with:
19-
go-version: 1.13
20-
id: go
16+
- name: Setup Go environment
17+
uses: actions/setup-go@v2
18+
run: go version
2119

2220
- name: Check out code into the Go module directory
2321
uses: actions/checkout@v2
2422

2523
- name: Get dependencies
26-
run: |
27-
go get -v -t -d ./...
28-
if [ -f Gopkg.toml ]; then
29-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
30-
dep ensure
31-
fi
24+
run: go get -v -t -d ./...
3225

3326
- name: Build
3427
run: go build -v .
28+
29+
- name: Test
30+
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
31+
32+
- name: Codecov
33+
uses: codecov/codecov-action@v1.0.7

0 commit comments

Comments
 (0)