mirror of https://github.com/cbeuw/Cloak
Add github actions
This commit is contained in:
parent
2e36627a12
commit
3728622f48
|
|
@ -0,0 +1,17 @@
|
||||||
|
name: Build and test
|
||||||
|
on: [ push ]
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubuntu-latest, macos-latest, windows-latest ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: '^1.15' # The Go version to download (if necessary) and use.
|
||||||
|
- run: go test -race -coverprofile=coverage.txt -coverpkg=./... -covermode=atomic ./...
|
||||||
|
- uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
file: coverage.txt
|
||||||
Loading…
Reference in New Issue