From 379da30e4c2c7b514703c8cddafca90687f031c7 Mon Sep 17 00:00:00 2001 From: yuxizhe Date: Wed, 29 Jun 2022 02:37:39 +0800 Subject: [PATCH] Regularly test against next builds of React Test against react@next Once a week on Monday Close #1484 Close #2318 --- .github/workflows/react-integration.yml | 21 +++++++++++++++++++++ package.json | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/react-integration.yml diff --git a/.github/workflows/react-integration.yml b/.github/workflows/react-integration.yml new file mode 100644 index 00000000..4e3625ea --- /dev/null +++ b/.github/workflows/react-integration.yml @@ -0,0 +1,21 @@ +name: react@next integration + +on: + schedule: + # Run every Monday at 12:00 (see https://crontab.guru) + - cron: '0 12 * * 1' + +jobs: + react-next: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '14.x' + - run: npm install -g yarn + - run: yarn install + # Install next-tagged versions + - run: yarn upgrade react@next react-dom@next -W --dev + # Only run the unit tests + - run: yarn jest diff --git a/package.json b/package.json index f2d1cef6..37c9c19d 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "prerelease": "yarn test && yarn compile", "release": "node ./scripts/release/publish.js", "postrelease": "yarn docs:release && yarn benchmarks:release", - "test": "yarn flow && yarn lint:report && yarn jest --runInBand" + "test": "yarn flow && yarn fmt:report && yarn lint:report && yarn jest --runInBand" }, "devDependencies": { "@babel/cli": "^7.12.13",