We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eee4d20 + 4765634 commit 5d06d24Copy full SHA for 5d06d24
.github/workflows/schema-tests.yaml
@@ -9,8 +9,7 @@ name: schema-test
9
#
10
11
# run this on push to any branch and creation of pull-requests
12
-on:
13
- push: {}
+on:
14
pull_request: {}
15
workflow_dispatch: {}
16
@@ -33,3 +32,5 @@ jobs:
33
32
34
- name: Run tests
35
run: npm run test
+ env:
36
+ BASE: ${{ github.event.pull_request.base.ref }}
scripts/schema-test-coverage.sh
@@ -6,13 +6,11 @@
6
7
[[ ! -e src/schemas ]] && exit 0
8
-branch=$(git branch --show-current)
-
echo
echo "Schema Test Coverage"
node scripts/schema-test-coverage.mjs src/schemas/validation/schema-base.yaml tests/schema/pass
rc=$?
17
18
-[[ "$branch" == "dev" ]] || exit $rc
+[[ "$BASE" == "dev" ]] || exit $rc
0 commit comments