Create go-tests.yml

This commit is contained in:
Jan Stabenow 2022-07-21 22:46:56 +02:00 committed by GitHub
parent 8c956111ba
commit d375450c3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

22
.github/workflows/go-tests.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-go@v2
with:
go-version: '1.18'
- name: Run coverage
run: go test -coverprofile=coverage.out -covermode=atomic -v ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
flags: unit-linux