diff --git a/.github/workflows/validate-tests.yml b/.github/workflows/validate-tests.yml new file mode 100644 index 0000000000..d56b6e82e3 --- /dev/null +++ b/.github/workflows/validate-tests.yml @@ -0,0 +1,32 @@ +name: Validate Tests + +on: + pull_request: + push: + branches: + - main + - 'release-*' + workflow_dispatch: + +jobs: + validate: + name: Validate + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup + uses: ./.github/actions/setup-js + + - name: yarn gentest-validate + run: yarn gentest-validate + + - name: yarn gentest + run: yarn gentest + + - name: Check for modified tests + run: | + if [[ -n $(git status -s) ]]; then + echo "yarn gentest modifed tests. Please run yarn gentest to resolve." + exit 1 + fi