Use github actions instead of travis-ci

This commit is contained in:
Julien Laffaye
2021-10-28 22:39:57 -04:00
parent 6a13e1e753
commit 7a2bce30c7
4 changed files with 93 additions and 16 deletions

21
.github/workflows/unit_tests.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: Units tests
on: [push, pull_request]
jobs:
checks:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Run tests
run: go test -v -covermode=count -coverprofile=coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@v1.0.8
- name: Coveralls
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov