Skip to content

Commit 49e0171

Browse files
authored
add unit tests to ci (#928)
1 parent bdc4f15 commit 49e0171

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/golangci-lint.yaml renamed to .github/workflows/golangci.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,36 @@ on:
66
branches:
77
- master
88
- "/^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/"
9+
paths-ignore:
10+
- "**/*.md"
911

1012
permissions:
1113
contents: read
1214
pull-requests: read
1315

1416
jobs:
15-
golangci:
17+
lint:
1618
name: lint
1719
runs-on: ubuntu-latest
1820
steps:
1921
- uses: actions/checkout@v4
2022
- uses: actions/setup-go@v5
2123
with:
2224
go-version-file: go.mod
25+
2326
- name: golangci-lint
2427
uses: golangci/golangci-lint-action@v6
2528
with:
2629
version: v1.59
30+
31+
coverage:
32+
name: coverage
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-go@v5
37+
with:
38+
go-version-file: go.mod
39+
40+
- name: Unit tests and coverage
41+
run: make cov

0 commit comments

Comments
 (0)