Daily auto tests for React Canary #15
This file contains hidden or 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: Daily auto tests for React Canary | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: "24" | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: | | |
| pnpm --filter contection-tests --filter contection --filter "./modules/*" add react@canary react-dom@canary --no-lockfile | |
| pnpm --filter contection-tests --filter contection --filter "./modules/*" add @types/react@latest @types/react-dom@latest --save-dev --no-lockfile | |
| - name: Build package | |
| run: | | |
| pnpm package run build | |
| - name: Build modules | |
| run: | | |
| for module in modules/*/; do | |
| echo "Building module: $module" | |
| cd "$module" | |
| pnpm run build | |
| cd - > /dev/null | |
| done | |
| - name: Run tests | |
| run: | | |
| pnpm --filter contection-tests test | |
| pnpm --filter contection-tests test:types | |
| - name: Set summary | |
| run: | | |
| REACT_VERSION=$(node -p "require('react/package.json').version") | |
| echo "$REACT_VERSION" >> $GITHUB_STEP_SUMMARY | |
| working-directory: ./tests |