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
|
2023-11-19 12:31:08 +01:00
|
|
|
uses: actions/setup-go@v4
|
2020-11-08 23:47:10 +01:00
|
|
|
with:
|
2023-11-19 21:33:18 +01:00
|
|
|
go-version: '1.20.2'
|
2021-03-04 21:39:37 +01:00
|
|
|
- name: Check out code
|
2023-11-20 21:10:09 +01:00
|
|
|
uses: actions/checkout@v4
|
2020-11-08 23:47:10 +01:00
|
|
|
- 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-10-09 15:56:29 +02:00
|
|
|
- uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
|
|
files: coverage.out
|