-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (32 loc) · 953 Bytes
/
default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Tests
on:
push:
branches: [master]
pull_request:
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
go-version: [1.21.x, 1.22.x, 1.23.x]
include:
- go-version: 1.23.x
upload-coverage: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
with:
go-version: ${{ matrix.go-version }}
- name: Build
shell: bash
run: make build
- name: Test and Coverage
shell: bash
env:
UPLOAD_COVERAGE: ${{ matrix.upload-coverage }}
COVERPROFILE: ./cover.out
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: make test