Skip to content

Commit 266bfd0

Browse files
committed
switch to github actions
Signed-off-by: Arunprasad Rajkumar <[email protected]>
1 parent e43fe7c commit 266bfd0

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ci
2+
on:
3+
- push
4+
- pull_request
5+
env:
6+
golang-version: '1.16'
7+
jobs:
8+
generate:
9+
runs-on: ubuntu-latest
10+
name: Generate yaml
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
- uses: actions/setup-go@v2
16+
with:
17+
go-version: ${{ env.golang-version }}
18+
- run: make --always-make generate && git diff --exit-code
19+
lint:
20+
runs-on: ubuntu-latest
21+
name: Jsonnet linter
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
persist-credentials: false
26+
- run: make --always-make lint
27+
fmt:
28+
runs-on: ubuntu-latest
29+
name: Jsonnet formatter
30+
steps:
31+
- uses: actions/checkout@v2
32+
with:
33+
persist-credentials: false
34+
- run: make --always-make fmt && git diff --exit-code
35+
unit-tests:
36+
runs-on: ubuntu-latest
37+
name: Unit tests
38+
steps:
39+
- uses: actions/checkout@v2
40+
with:
41+
persist-credentials: false
42+
- run: make --always-make test

0 commit comments

Comments
 (0)