Skip to content

Commit 882d1ca

Browse files
committed
Only generate JSON before running the tests
1 parent 50047b6 commit 882d1ca

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Diff for: .github/workflows/schema-tests.yaml

+1-12
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ name: schema-test
77
# This workflow
88
# - converts the YAML metaschemas to JSON
99
# - runs the npm test script to validate passing and failing testcases for the metaschemas
10-
# - checks in changed JSON files
1110
#
1211

1312
# run this on push to any branch and creation of pull-requests
1413
on:
1514
push: {}
15+
pull_request: {}
1616
workflow_dispatch: {}
1717

1818
jobs:
@@ -39,14 +39,3 @@ jobs:
3939

4040
- name: Run tests
4141
run: npm run test
42-
43-
- name: Check in changed JSON files
44-
run: |
45-
git config user.name ${GITHUB_ACTOR}
46-
git config user.email ${PUSHER_EMAIL}
47-
git add schemas/**/*.json
48-
git diff-index --quiet HEAD schemas/**/*.json || git commit -m "converted JSON metaschemas"
49-
git push
50-
env:
51-
CI: true
52-
PUSHER_EMAIL: ${{ github.event.pusher.email }}

0 commit comments

Comments
 (0)