Skip to content

Commit 63538fb

Browse files
committed
Add GitHub Actions workflows
1 parent 919bbbb commit 63538fb

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/check.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "check"
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
vet:
9+
runs-on: "ubuntu-latest"
10+
steps:
11+
- name: "Checkout"
12+
uses: "actions/checkout@v4"
13+
14+
- name: "`go vet`"
15+
run: |
16+
go vet ./...
17+
18+
test:
19+
runs-on: "ubuntu-latest"
20+
steps:
21+
- name: "Checkout"
22+
uses: "actions/checkout@v4"
23+
24+
- name: "Run tests."
25+
run: |
26+
go test -v ./...

.github/workflows/push.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "push"
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- "master"
8+
9+
jobs:
10+
check:
11+
uses: "./.github/workflows/check.yml"

0 commit comments

Comments
 (0)