Skip to content

Commit 346eb0f

Browse files
committed
Add GH unit testing
Signed-off-by: Andy Doan <andy@foundries.io>
1 parent dd6f82e commit 346eb0f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/pr.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
format:
7+
name: golangci-lint
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: setup-go
11+
uses: actions/setup-go@v5
12+
with:
13+
go-version: '~1.22'
14+
- name: clone-code
15+
uses: actions/checkout@v4
16+
- name: golang-lint-ci
17+
uses: golangci/golangci-lint-action@v6
18+
with:
19+
version: v1.57
20+
unit-test:
21+
name: unit-test
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: setup-go
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version: '~1.22'
28+
- name: clone-code
29+
uses: actions/checkout@v4
30+
- name: unit-tests
31+
run: go test -v ./...

0 commit comments

Comments
 (0)