master
李光春 2 years ago
parent 9225a59fda
commit ea3da0a0a8

@ -3,8 +3,12 @@ name: Go
on:
push:
branches: [ master ]
paths-ignore:
- '**.md'
pull_request:
branches: [ master ]
paths-ignore:
- '**.md'
jobs:
build:
@ -19,3 +23,9 @@ jobs:
- name: Test
run: go test -v ./...
- name: Test
run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
- name: Coverage
run: bash <(curl -s https://codecov.io/bash)

@ -1,14 +0,0 @@
language: go
go:
- 1.17.x
- tip
before_install:
- go get -t -v ./...
script:
- go test -race -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)
Loading…
Cancel
Save