silverstripe / gha-run-tests

GitHub Action - CI test runner
BSD 3-Clause "New" or "Revised" License
0 stars 4 forks source link

FIX Ensure yarn scripts exist before running them #3

Closed emteknetnz closed 2 years ago

emteknetnz commented 2 years ago

Issue https://github.com/silverstripe/gha-ci/issues/11

Some package.json files do not have yarn scripts build/test/lint defined. If not defined, then skip them.

Example

Running yarn test
yarn run v1.22.19
error Command "test" not found.

https://github.com/creative-commoners/cwp-starter-theme/runs/7242059614?check_suite_focus=true#step:12:347