-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.23 KB
/
go.yaml
File metadata and controls
56 lines (49 loc) · 1.23 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: go
on:
push:
branches: ["main"]
paths-ignore:
- "**.md"
- "doc/**"
- ".vscode/**"
- ".idea/**"
- "examples/**"
- "docker-compose.yml"
- "LICENSE"
- ".gitignore"
pull_request:
branches: ["main"]
paths-ignore:
- "**.md"
- "doc/**"
- ".vscode/**"
- ".idea/**"
- "examples/**"
- "docker-compose.yml"
- "LICENSE"
- ".gitignore"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: "1.25"
cache: true
- name: Build
run: go build -mod=vendor -v ./...
- name: Test
run: go test -mod=vendor -v -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage to Codecov
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v6
with:
files: ./coverage.out
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false