Skip to content

Commit 6fc74a8

Browse files
committed
ci: add build and unit test workflow
Add GitHub Actions workflow for automated build and unit tests. This workflow will: - Run on main branch pushes and PR events - Build the project using make - Execute unit tests - Run with Go 1.19 on Ubuntu latest
1 parent 5f3154f commit 6fc74a8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build_and_unit_test
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
types: [ opened, synchronize, reopened, edited, ready_for_review ]
9+
10+
jobs:
11+
12+
build_and_unit_test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Set up Go
18+
uses: actions/setup-go@v4
19+
with:
20+
go-version: 1.19
21+
22+
- name: Build
23+
run: make
24+
25+
- name: Unit Test
26+
run: make unit

0 commit comments

Comments
 (0)