2020-08-02 19:04:53 -04:00
|
|
|
name: tests
|
2020-08-02 17:10:39 -04:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
export PATH=$PATH:$(go env GOPATH)/bin
|
|
|
|
go get -u golang.org/x/lint/golint
|
|
|
|
make test-coverage
|
|
|
|
|
|
|
|
- name: Upload test coverage report
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: test_coverage_report
|
|
|
|
path: coverage.html
|