test: create storage state file on start #312
Workflow file for this run
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: ci | |
on: push | |
jobs: | |
ci: | |
name: Prepare (${{ matrix.os}}, Node.js ${{ matrix.node }}) | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [18, 20, 22] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: "https://registry.npmjs.org/" | |
- run: npm ci | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
- run: npx playwright install --with-deps | |
- run: npm run lint | |
- run: npm run build | |
- uses: andresz1/size-limit-action@v1 | |
if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node == 22 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: npm ci --prefix e2e-projects/app-router | |
- run: npm ci --prefix e2e-projects/pages-router | |
- run: npm run e2e | |
env: | |
PLAYWRIGHT_PRISMIC_USERNAME: ${{ secrets.PLAYWRIGHT_PRISMIC_USERNAME }} | |
PLAYWRIGHT_PRISMIC_PASSWORD: ${{ secrets.PLAYWRIGHT_PRISMIC_PASSWORD }} | |
- uses: actions/upload-artifact@v4 | |
if: ${{ !cancelled() }} | |
with: | |
name: playwright-report (${{ matrix.os }}, Node.js ${{ matrix.node }}) | |
path: playwright-report/ | |
retention-days: 30 |