Skip to content

Commit 9c9639f

Browse files
authored
Merge pull request #13 from mig4/5-auto-build-test
Add initial CI workflow
2 parents 001daf4 + 9ad6473 commit 9c9639f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
5+
build:
6+
name: build
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- name: Setup Go
11+
uses: actions/setup-go@v1
12+
with:
13+
go-version: 1.12
14+
id: go
15+
16+
- name: Setup BATS
17+
uses: mig4/setup-bats@v1
18+
with:
19+
bats-version: 1.1.0
20+
21+
- name: Check out code
22+
uses: actions/checkout@v1
23+
24+
- name: Setup YQ
25+
run: sudo snap install yq
26+
27+
- name: Build
28+
run: make build
29+
30+
- name: Test
31+
run: make test-unit test-component

0 commit comments

Comments
 (0)