Skip to content

Commit ef79d18

Browse files
committed
Refactor test workflow to streamline jsonschema usage and improve clarity
1 parent 38cf31e commit ef79d18

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,18 @@ jobs:
1616
- name: Checkout repository
1717
uses: actions/checkout@v4
1818

19-
- name: Run conformance tests (normative)
19+
- name: Setup jsonschema
2020
uses: sourcemeta/jsonschema@v14.4.0
21-
with:
22-
args: test tests/normative --json > ctrf-normative.json
21+
22+
- name: Run conformance tests (normative)
23+
run: jsonschema test tests/normative --json > ctrf-normative.json
2324

2425
- name: Run informative tests
25-
uses: sourcemeta/jsonschema@v14.4.0
26+
run: jsonschema test tests/informative --json > ctrf-informative.json
2627
continue-on-error: true
27-
with:
28-
args: test tests/informative --json > ctrf-informative.json
2928

3029
- name: Validate example documents
31-
uses: sourcemeta/jsonschema@v14.4.0
32-
with:
33-
args: validate schema/ctrf.schema.json examples/*.json
30+
run: jsonschema validate schema/ctrf.schema.json examples/*.json
3431

3532
- name: Publish Conformance Test Results
3633
uses: ctrf-io/github-test-reporter@v1

0 commit comments

Comments
 (0)