Add Playwright E2E testing framework #2
Workflow file for this run
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: Playwright E2E Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| jobs: | |
| playwright: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: Install root dependencies | |
| run: yarn install | |
| - name: Install dummy app dependencies | |
| working-directory: spec/dummy | |
| run: | | |
| bundle install | |
| yarn install | |
| - name: Install Playwright browsers | |
| working-directory: spec/dummy | |
| run: yarn playwright install --with-deps | |
| - name: Run Playwright tests | |
| working-directory: spec/dummy | |
| run: yarn playwright test | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: spec/dummy/playwright-report/ | |
| retention-days: 30 |