Daily auto tests for React Canary #30
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/*" --filter "./adapters/*" add react@canary react-dom@canary --no-lockfile | |
| pnpm --filter contection-tests --filter contection --filter "./modules/*" --filter "./adapters/*" add @types/react@latest @types/react-dom@latest --save-dev --no-lockfile | |
| - name: Build package | |
| run: | | |
| pnpm package run build | |
| - name: Build subpackages | |
| run: | | |
| for subpackage in modules/*/ adapters/*/; do | |
| echo "Building subpackage: $subpackage" | |
| cd "$subpackage" | |
| 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 |