-
Notifications
You must be signed in to change notification settings - Fork 86
33 lines (32 loc) · 1.05 KB
/
go-test.yml
File metadata and controls
33 lines (32 loc) · 1.05 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
name: go test
on: [ push, pull_request ]
jobs:
go-test:
runs-on: ubuntu-22.04-arm
strategy:
matrix:
go: [ '1.23', '1.24']
name: Go ${{ matrix.go }} test
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: 'go build/verify example code'
run: |
go build ./docs/examples/ordering_microservice/
go build ./docs/examples/hello_world/
go build ./docs/examples/zeebe_exporter/
- name: go test
run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: verify codecov.yaml
run: curl -X POST --data-binary @codecov.yml https://codecov.io/validate
- name: upload code coverage
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.txt
fail_ci_if_error: false # optional (default = false)
verbose: false # optional (default = false)