Skip to content

Commit d106716

Browse files
authored
Merge pull request #2 from alexferl/add_workflow
add workflow
2 parents 18b02da + 569bda9 commit d106716

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/workflow.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test and coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 2
12+
- uses: actions/setup-go@v2
13+
with:
14+
go-version: '1.19'
15+
- name: Run coverage
16+
run: go test -race -coverprofile=coverage.out -covermode=atomic
17+
- name: Upload coverage to Codecov
18+
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)