Show gem versions in CI failure output (#1984) #32
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: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| 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 yalc globally | |
| run: yarn global add yalc | |
| - 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: Generate React on Rails packs | |
| working-directory: spec/dummy | |
| env: | |
| RAILS_ENV: test | |
| run: bundle exec rake react_on_rails:generate_packs | |
| - name: Build test assets | |
| working-directory: spec/dummy | |
| run: yarn build:test | |
| - name: Run Playwright tests | |
| working-directory: spec/dummy | |
| run: yarn test:e2e | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: spec/dummy/e2e/playwright-report/ | |
| retention-days: 30 |