Skip to content

Commit 13e6834

Browse files
committed
[OPENJDK-2048] Add a GHA to validate JSON templates
Simply run all imageStream templates through 'jq' to ensure they're valid JSON. This could be extended to perform more elaborate validation or verification. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 685e15e commit 13e6834

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Validate ImageStream templates
2+
3+
on:
4+
push:
5+
branches:
6+
- release
7+
pull_request:
8+
branches:
9+
- release
10+
11+
jobs:
12+
verify:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
template:
17+
- community-image-streams.json
18+
- image-streams.json
19+
- image-streams-aarch64.json
20+
- image-streams-ppc64le.json
21+
- image-streams-s390x.json
22+
- runtime-image-streams.json
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: run jq
26+
run: jq < templates/${{ matrix.template }}

0 commit comments

Comments
 (0)