Skip to content

Commit de93a66

Browse files
committed
add simple unit test PR gate
Adds a simple GH action pull request gate for `make test`
1 parent f6d5f75 commit de93a66

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/unit-test.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: build-unit-test
2+
on:
3+
# Allow manual trigger
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- main
8+
paths:
9+
- '**.go'
10+
- Makefile
11+
- go.mod
12+
- go.sum
13+
14+
jobs:
15+
build:
16+
name: make test
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: checkout code
20+
uses: actions/checkout@v2
21+
- uses: actions/setup-go@v2
22+
with:
23+
go-version: '1.15'
24+
- name: make test
25+
run: make test

0 commit comments

Comments
 (0)