Reset global Form state onSubmit and onCancel in Add and Edit forms -… #13609
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: Unit Tests | |
on: [push, pull_request] | |
jobs: | |
unit: | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
name: Core Unit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v3 | |
# node setup | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
# remove workaround for 18.x once https://github.com/nodejs/node/issues/47563 is fixed | |
node-version: ${{ matrix.node-version == '18.x' && '18.15.0' || matrix.node-version }} | |
cache: yarn | |
# node install | |
- run: yarn --immutable | |
# node test | |
- run: yarn i18n && yarn test:ci | |
# Bundlewatch | |
- run: yarn build | |
- uses: jackyef/bundlewatch-gh-action@master | |
with: | |
bundlewatch-github-token: ${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }} |