feat: integrate gl-react-image into the monorepo #177
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: CI cookbook | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| e2e: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| # Build gl-react packages (needed by cookbook) | |
| - name: Build gl-react packages | |
| run: | | |
| for d in packages/gl-react packages/gl-react-dom; do | |
| pnpm exec babel --root-mode upward --source-maps --extensions '.ts,.tsx' -d "$d/lib" "$d/src" | |
| done | |
| # Install Playwright browsers | |
| - name: Install Playwright | |
| run: pnpm --filter gl-react-cookbook e2e:install | |
| # Run Playwright tests | |
| - name: Run Playwright tests | |
| run: pnpm --filter gl-react-cookbook e2e | |
| # Upload test results on failure | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: cookbook-test-results | |
| path: packages/cookbook/test-results/ | |
| retention-days: 7 |