mirror of
https://github.com/rwinkhart/convertroman.git
synced 2026-09-05 16:37:22 -04:00
Create go.yml
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
name: Test Coverage
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ master ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Set up Go 1.x
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ^1.13
|
||||||
|
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: go build -v .
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: go test -race -covermode=atomic -coverprofile ./cp.out
|
||||||
|
|
||||||
|
- name: Codecov
|
||||||
|
# You may pin to the exact commit or the version.
|
||||||
|
# uses: codecov/codecov-action@7d5dfa54903bd909319c580a00535b483d1efcf3
|
||||||
|
uses: codecov/codecov-action@v1.0.14
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
file: ./cp.out
|
||||||
Reference in New Issue
Block a user