2020-05-13 08:44:07 -04:00
|
|
|
name: Build and Test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-09-17 16:03:07 +00:00
|
|
|
# https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
|
|
|
|
permissions:
|
|
|
|
contents: read
|
2020-05-13 08:44:07 -04:00
|
|
|
name: Go CI
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-24 15:15:13 -05:00
|
|
|
go: [1.16.8, 1.17.5]
|
2020-05-13 08:44:07 -04:00
|
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
2021-07-06 18:39:27 -07:00
|
|
|
|
2020-05-13 08:44:07 -04:00
|
|
|
- name: Check out source
|
|
|
|
uses: actions/checkout@v2
|
2021-07-06 18:39:27 -07:00
|
|
|
|
2020-05-13 08:44:07 -04:00
|
|
|
- name: Build
|
|
|
|
run: go build ./...
|
2021-07-06 18:39:27 -07:00
|
|
|
|
2020-05-13 08:44:07 -04:00
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
sh ./goclean.sh
|
2020-08-24 20:58:47 +02:00
|
|
|
|
|
|
|
- name: Send coverage
|
|
|
|
uses: shogo82148/actions-goveralls@v1
|
|
|
|
with:
|
|
|
|
path-to-profile: profile.cov
|