Skip to content

Commit 2bca629

Browse files
committed
Add PR test CI
Signed-off-by: Derek Nola <[email protected]>
1 parent 7be3f80 commit 2bca629

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/pr.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request: {}
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
unit:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Go
19+
uses: actions/setup-go@v5
20+
with:
21+
go-version-file: 'go.mod'
22+
23+
- name: Unit Test
24+
run: go test ./pkg/... -cover -tags=test
25+
26+
ci:
27+
runs-on: ubuntu-latest
28+
env:
29+
ARCH: amd64
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
34+
- name: Build binary
35+
run: make build
36+
37+
- name: Validate
38+
run: make validate

0 commit comments

Comments
 (0)