diff --git a/.github/workflows/pr-build-test.yaml b/.github/workflows/pr-build-test.yaml index aa7d273..3a49ac3 100644 --- a/.github/workflows/pr-build-test.yaml +++ b/.github/workflows/pr-build-test.yaml @@ -112,6 +112,19 @@ jobs: - name: Lint run: npm run lint + - name: Input Schema Validation + run: | + if [ ! -d "node_modules/apify-cli" ]; then + echo "::warning::apify-cli is not installed as an npm dependency. Improve CI speed by installing it" + fi + npx --yes apify-cli telemetry disable + if [ -d ./.actor ]; then + npx apify-cli validate-schema + fi + if [ -d ./actors ]; then + cd ./actors && ls | xargs -P 8 -I {} sh -c 'cd {} && npx apify-cli validate-schema || { echo "::error::Schema validation failed in actor: {}"; exit 1; }' + fi + - name: Test run: npm test