chore: update to latest effect/Micro #2667
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: Examples E2E | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
jobs: | |
e2e-node: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
dir: | |
[ | |
minimal-appdir, | |
minimal-pagedir, | |
backend-adapters | |
] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./tooling/gh-actions/setup | |
- name: Build UT packages | |
run: pnpm run build | |
- name: Run build | |
run: pnpm turbo --filter ./examples/${{ matrix.dir }} build | |
- name: Install playwright | |
run: | | |
cat ./examples/${{ matrix.dir }}/package.json | | |
if grep --silent '"@playwright/test"'; then | |
pnpm playwright install --with-deps | |
fi | |
- name: Run E2E Tests (if exists) | |
run: pnpm turbo --filter ./examples/${{ matrix.dir }} test | |
env: | |
UPLOADTHING_TOKEN: ${{ secrets.UPLOADTHING_E2E_TEST_TOKEN }} | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() && matrix.dir == 'backend-adapters' }} | |
with: | |
name: playwright-report | |
path: ./examples/${{ matrix.dir}}/playwright-report/ | |
retention-days: 7 |