-
-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (28 loc) · 652 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (28 loc) · 652 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
name: CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup Go
uses: actions/setup-go@v7
with:
go-version-file: go.mod
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
if: always()
uses: codecov/codecov-action@v7
with:
files: coverage.out
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}