Use GitHub Actions
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
parent
73367784ce
commit
ad8b5a5c17
1 changed files with 25 additions and 0 deletions
25
.github/workflows/ci.yml
vendored
Normal file
25
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: CI
|
||||
|
||||
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
|
Loading…
Reference in a new issue