Skip to content

Commit 9eb0efe

Browse files
authored
add dryrun capability to create command (#166)
1 parent 2e8ac31 commit 9eb0efe

File tree

11 files changed

+1060
-47
lines changed

11 files changed

+1060
-47
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Draft JSON Integration Tests
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Go
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: 1.18.2
15+
- name: make
16+
run: make
17+
- uses: actions/upload-artifact@v2
18+
with:
19+
name: helm-skaffold
20+
path: ./test/skaffold.yaml
21+
if-no-files-found: error
22+
- uses: actions/upload-artifact@v2
23+
with:
24+
name: draft-binary
25+
path: ./draft
26+
if-no-files-found:
27+
error
28+
info:
29+
runs-on: ubuntu-latest
30+
needs: build
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: actions/download-artifact@v2
34+
with:
35+
name: draft-binary
36+
- run: chmod +x ./draft
37+
- run: |
38+
mkdir ./langtest
39+
- run: |
40+
./draft info > ./info.json
41+
echo "Draft Info JSON schema:"
42+
cat test/info_schema.json
43+
echo "Draft Info JSON:"
44+
cat info.json
45+
- name: Validate JSON
46+
run: |
47+
npm install -g ajv-cli
48+
ajv validate -s test/info_schema.json -d info.json

0 commit comments

Comments
 (0)