Skip to content

Commit 2403a8e

Browse files
conf(ci): setup github workflow
conf(ci): setup github workflow
2 parents c0686a9 + 3d89bce commit 2403a8e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/go.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v4
18+
with:
19+
go-version: '1.23'
20+
21+
- name: Install dependencies
22+
run: go mod tidy
23+
24+
- name: Run tests with coverage
25+
run: go test -v -coverprofile=coverage.txt ./...
26+

0 commit comments

Comments
 (0)