Skip to content

Commit 822780b

Browse files
committed
Run unit tests for each PR
Signed-off-by: Ryan Goulding <[email protected]>
1 parent de781f4 commit 822780b

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pre-main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test Incoming Changes
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
12+
test:
13+
name: Run Tests
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- name: Set up Go 1.15
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: ^1.15
21+
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v2
24+
25+
- name: Run Tests
26+
run: make generate-golang-schema build tests

0 commit comments

Comments
 (0)