-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 991 Bytes
/
default.yml
File metadata and controls
38 lines (34 loc) · 991 Bytes
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
38
name: Test
on:
push:
pull_request:
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
OUTPUTDIR: coverage
COVERPROFILE: coverage.out
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Run tests
run: make test
- name: Upload coverage reports to Codecov
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: codecov/codecov-action@fdcc8476540edceab3de004e990f80d881c6cc00 # v5.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ env.OUTPUTDIR }}/${{ env.COVERPROFILE }}
flags: unittests
disable_search: true
verbose: true