Skip to content

Commit ca06ca8

Browse files
committed
chore: add github action for go
1 parent 76ab968 commit ca06ca8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/go.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Go Test
3+
4+
on:
5+
# push:
6+
# branches:
7+
# - main
8+
# paths:
9+
# - 'go-algorithm/**'
10+
# schedule:
11+
# - cron: '0 0 * * *'
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Go
22+
uses: actions/setup-go@v5
23+
with:
24+
go-version: '1.22'
25+
26+
- name: Test
27+
working-directory: ${{github.workspace}}/go-algorithm
28+
run: go test -v ./...

0 commit comments

Comments
 (0)