You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
#!/usr/bin/env bash# Test all file ends with schema.json via ajv
CURRENT_DIR=`dirname "$0"`cd$CURRENT_DIRforSCHEMA_FILEin*.schema.json
do
SAMPLE_FILE=samples/${SCHEMA_FILE/schema/sample}echo Schema file: $SCHEMA_FILEif [ -f$SAMPLE_FILE ]
thenecho Found sample file: $SAMPLE_FILE
npx ajv -s $SCHEMA_FILE -d $SAMPLE_FILEelseecho"*NO* sample file found for $SCHEMA_FILE"fidone
Gitlab CI error message
...
23 $ yarn test:schema
24 yarn run v1.21.1
25 $ ./src/schemas/schema-test.sh
26 Schema file: dev-assistant.schema.json
27 Found sample file: samples/dev-assistant.sample.json
28 npx: installed 6 in 1.124s
29 command not found: ajv
30 Schema file: form.schema.json
31 *NO* sample file found for form.schema.json
32 Schema file: news.schema.json
33 *NO* sample file found for news.schema.json
34 Schema file: repos.schema.json
35 Found sample file: samples/repos.sample.json
36 npx: installed 6 in 0.911s
37 command not found: ajv
38 Schema file: team-members.schema.json
39 Found sample file: samples/team-members.sample.json
40 npx: installed 6 in 0.902s
41 command not found: ajv
42 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
43 error Command failed with exit code 1.
47 ERROR: Job failed: command terminated with exit code 1
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What / Why
Where
Who
References
package.json
script block in file.gitlab-ci.yml
file contentsschema-test.sh
file contentsGitlab CI error message
The text was updated successfully, but these errors were encountered: