-
Notifications
You must be signed in to change notification settings - Fork 90
56 lines (52 loc) · 1.45 KB
/
acceptance-tests.yaml
File metadata and controls
56 lines (52 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Acceptance Tests
on:
pull_request_target:
branches:
- 'master'
jobs:
jsonnetsyntax:
name: Jsonnet Syntax
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Jsonnet
run: sudo apt-get install -y jsonnet
- name: Test Syntactic Validity
run: .github/render_json.sh
jsonnetfmt:
name: Jsonnet Formatting
runs-on: ubuntu-20.04
steps:
- name: Checkout Repo
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Jsonnet
run: sudo apt-get install -y jsonnet
- name: Test Jsonnet Formatting
run: .github/jsonnet_format_check.sh
jsondiff:
name: Show JSON Diff
runs-on: ubuntu-20.04
needs:
- jsonnetsyntax
- jsonnetfmt
steps:
- name: Checkout Repo
# https://github.com/marketplace/actions/checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Jsonnet
run: sudo apt-get install -y jsonnet
- name: Render JSON
run: .github/render_json.sh ./jsonnet ./json
- name: Show JSON Diff
run: .github/json_diff_pr_comment.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}