Merge pull request #26 from ember-tooling/nvp/testing-via-playwright #53
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 | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| ############################################################## | |
| jobs: | |
| lints: | |
| name: "Lints" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: wyvox/action@v1 | |
| - run: pnpm lint | |
| e2e: | |
| name: "E2E" | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: wyvox/action@v1 | |
| - name: Install Playwright browser | |
| run: pnpm --filter docs-for-ember-astro exec playwright install --with-deps chromium | |
| - name: Run e2e tests | |
| run: pnpm --filter docs-for-ember-astro test:e2e | |
| - name: Upload report | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: playwright-report | |
| path: docs/playwright-report/ | |
| retention-days: 7 |