Extend CI setup to make it suitable for ReactUnity #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JS | |
uses: ./.github/actions/setup-js | |
- name: yarn gentest-validate | |
run: yarn gentest-validate | |
- name: yarn gentest | |
run: yarn gentest -h | |
- name: Check for modified tests | |
run: | | |
if [[ -n $(git status -s) ]]; then | |
git status -s | |
echo "yarn gentest modified these tests. Please run yarn gentest to resolve." | |
exit 1 | |
fi |