Add github actions.

This commit is contained in:
Ola
2022-10-03 15:32:14 +02:00
parent 429cbb6053
commit ac7a19b155
2 changed files with 19 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
name: test
on:
push:
branches:
- master
jobs:
test:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-go@v3
with:
go-version: '1.19'
- run: go get -t -v ./...
- run: go test -race -coverprofile=coverage.out -covermode=atomic
- uses: codecov/codecov-action@v3