Skip to content

Commit 9f54fd7

Browse files
authored
Add CI workflow
1 parent a0ef729 commit 9f54fd7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ indent_size = 4
1717
[.vscode/*.json]
1818
indent_style = space
1919
indent_size = 4
20+
21+
[*.{yaml,yml}]
22+
indent_style = space
23+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-go@v3
15+
with:
16+
go-version: '1.20'
17+
cache: true
18+
- run: go build -v ./...
19+
- name: Test and Generate Coverage
20+
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
21+
- name: Upload Coverage Report
22+
uses: codecov/codecov-action@v3
23+
with:
24+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)