Update go.yml

This commit is contained in:
bjdgyc 2021-03-01 16:19:35 +08:00 committed by GitHub
parent ea7d27b4f0
commit a0669e1e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -21,24 +21,24 @@ jobs:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Switch path
run: |
cd server
ls
- name: Get dependencies
run: |
ls
cd server
go get -v -t -d ./...
- name: Build
run: |
cd server
go build -v -o anylink -ldflags "-X main.COMMIT_ID=`git rev-parse HEAD`"
./anylink -rev
- name: Test coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
run: |
cd server
go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
run: |
cd server
bash <(curl -s https://codecov.io/bash)