Skip to content

Commit d59d384

Browse files
Wondertantzdybal
andcommitted
ci: minimal Go workflow
Co-authored-by: Tomasz Zdybał <[email protected]>
1 parent 5abf9f4 commit d59d384

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/go-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: go-header CI
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
branches:
7+
- main
8+
pull_request:
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v3
18+
with:
19+
go-version: 1.19
20+
21+
- name: Build
22+
run: go build -v ./...
23+
24+
- name: Test & Coverage
25+
run: |
26+
go install github.com/ory/[email protected]
27+
go-acc -o coverage.txt ./... -- -v --race
28+
29+
- uses: codecov/codecov-action@v3
30+
with:
31+
file: ./coverage.txt

0 commit comments

Comments
 (0)