Skip to content

Commit d269266

Browse files
committed
Add github test workflow
1 parent 9c5fb81 commit d269266

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
- name: Install Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version-file: 'go.mod'
19+
cache-dependency-path: 'go.sum'
20+
- name: Build binary
21+
run: |
22+
go build ./cmd/cmdg

0 commit comments

Comments
 (0)