Skip to content

Commit c4113fb

Browse files
committed
feat: setup github workflows
1 parent 71fe7f1 commit c4113fb

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/dependabot.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ version: 2
77
updates:
88
- package-ecosystem: gomod
99
directory: /script
10+
schedule:
11+
interval: weekly
12+
- package-ecosystem: github-actions
13+
directory: /
1014
schedule:
1115
interval: weekly

.github/workflows/unit-test.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Unit Test"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: ["*"]
8+
merge_group:
9+
10+
jobs:
11+
go-test:
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest]
15+
runs-on: ${{ matrix.os }}
16+
permissions:
17+
contents: read
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
22+
- name: Install Go
23+
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
24+
with:
25+
go-version-file: script/go.mod
26+
- name: Go Test (script)
27+
run: |
28+
cd script
29+
go test -v -race ./...
30+
- name: Go Test (tests)
31+
run: |
32+
cd tests
33+
go test -v -race ./...

0 commit comments

Comments
 (0)