Skip to content

Commit ad1508b

Browse files
committed
feat: initial ci/cd workflows
Added an initial CI/CD workflow.
1 parent c4ae57a commit ad1508b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
on:
3+
push: {}
4+
workflow_dispatch: {}
5+
6+
name: Build & Test
7+
8+
jobs:
9+
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Code
15+
uses: actions/checkout@v5
16+
17+
- name: Install Go
18+
uses: actions/setup-go@v6
19+
with:
20+
go-version-file: "go.mod"
21+
22+
- name: Run
23+
run: go build .
24+
25+
test:
26+
name: Test
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout Code
30+
uses: actions/checkout@v5
31+
32+
- name: Install Go
33+
uses: actions/setup-go@v6
34+
with:
35+
go-version-file: "go.mod"
36+
37+
- name: Run Tests
38+
run: go test -v ./...

0 commit comments

Comments
 (0)