Skip to content

Commit 2d1312d

Browse files
committed
update github actions workflow CI file.
1 parent bb68c0e commit 2d1312d

File tree

2 files changed

+27
-18
lines changed

2 files changed

+27
-18
lines changed

.github/workflows/ci_tests.yml

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test and coverage
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, macos-latest, windows-latest]
10+
11+
name: A job to run in docker container
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-go@v5
15+
with:
16+
go-version: 'stable'
17+
18+
- name: Gather dependencies
19+
run: go mod download
20+
21+
- name: Run coverage
22+
run: go test -v -cover -race -coverprofile=coverage.txt -covermode=atomic ./...
23+
24+
- name: Upload coverage to Codecov
25+
uses: codecov/codecov-action@v5
26+
with:
27+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)