2020-11-08 23:47:10 +01:00
|
|
|
name: Go
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-03-04 21:39:37 +01:00
|
|
|
- name: Set up Go
|
2020-11-08 23:47:10 +01:00
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ^1.15
|
2021-03-04 21:39:37 +01:00
|
|
|
- name: Check out code
|
2020-11-08 23:47:10 +01:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
2021-02-11 21:48:41 +01:00
|
|
|
run: make build
|
2020-11-08 23:47:10 +01:00
|
|
|
- name: Test
|
2021-06-08 22:40:53 +02:00
|
|
|
run: make test-with-coverage
|
2022-02-06 15:37:50 +01:00
|
|
|
# - uses: codecov/codecov-action@v1
|
|
|
|
# with:
|
|
|
|
# token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
# files: coverage.out
|