-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub workflow to ensure tests are up to date (#1505)
Summary: Pull Request resolved: #1505 This will ensure that all tests are not modified by hand and that gentest was run if needed (i.e. someone edited those files and forgot to update the tests). Not sure if this works right now, need to export to github and see what happens :) Reviewed By: NickGerleman Differential Revision: D52002920 fbshipit-source-id: 24167da1bd10a18ea66239b337fcb32ac309e424
- Loading branch information
1 parent
59d66f3
commit eeafe39
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 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 |
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