mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 01:43:30 +08:00
Update go.yml
This commit is contained in:
16
.github/workflows/go.yml
vendored
16
.github/workflows/go.yml
vendored
@@ -21,24 +21,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Switch path
|
|
||||||
run: |
|
|
||||||
cd server
|
|
||||||
ls
|
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Get dependencies
|
||||||
run: |
|
run: |
|
||||||
ls
|
cd server
|
||||||
go get -v -t -d ./...
|
go get -v -t -d ./...
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
cd server
|
||||||
go build -v -o anylink -ldflags "-X main.COMMIT_ID=`git rev-parse HEAD`"
|
go build -v -o anylink -ldflags "-X main.COMMIT_ID=`git rev-parse HEAD`"
|
||||||
./anylink -rev
|
./anylink -rev
|
||||||
|
|
||||||
- name: Test coverage
|
- 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
|
- name: Upload coverage to Codecov
|
||||||
run: bash <(curl -s https://codecov.io/bash)
|
run: |
|
||||||
|
cd server
|
||||||
|
bash <(curl -s https://codecov.io/bash)
|
||||||
|
Reference in New Issue
Block a user