chore(deps): update dependency @playwright/test to v1.63.0 #5225
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: Test and Release | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ">=24.19.0 <25" | |
| cache: "npm" | |
| - name: Install NPM version specified in package.json | |
| uses: ./.github/actions/install-npm | |
| - name: Install dependencies | |
| run: npm ci --no-audit | |
| - name: Compile TypeScript | |
| run: npx tsc | |
| - name: Check source code with eslint | |
| run: npx eslint ./ | |
| - name: Check if source code is properly formatted | |
| run: npx prettier -c ./ | |
| - name: Run tests | |
| run: npm test | |
| - name: Ensure it builds | |
| env: | |
| REGISTRY_ENDPOINT: https://example.com/ | |
| MAP_REGION: eu-west-1 | |
| MAP_API_KEY: placeholder | |
| run: | | |
| npm run build | |
| e2e-tests: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| environment: ci | |
| container: mcr.microsoft.com/playwright:v1.62.1 | |
| env: | |
| MAP_REGION: ${{ vars.MAP_REGION }} | |
| MAP_API_KEY: ${{ vars.MAP_API_KEY }} | |
| # Note: It's currently not possible to run test for multiple browsers in | |
| # parallel since the `webServer` cannot be defined per project: | |
| # https://github.com/microsoft/playwright/issues/22496 | |
| # However the mock backend server state is manipulated during test runs and | |
| # therefore cannot be used in parallel. | |
| strategy: | |
| matrix: | |
| browser: | |
| - chromium | |
| - firefox | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ">=24.19.0 <25" | |
| cache: "npm" | |
| - name: Install NPM version specified in package.json | |
| uses: ./.github/actions/install-npm | |
| - name: Install dependencies | |
| run: npm ci --no-audit --force | |
| - name: Run Playwright tests | |
| env: | |
| HOME: /root | |
| run: npx playwright test -x --project ${{ matrix.browser }} | |
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| if: always() | |
| with: | |
| name: playwright-report-${{ matrix.browser }} | |
| path: playwright-report/ | |
| retention-days: 7 | |
| release: | |
| if: github.ref == 'refs/heads/saga' | |
| permissions: | |
| actions: write | |
| contents: write | |
| needs: | |
| - tests | |
| - e2e-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ">=24.19.0 <25" | |
| cache: "npm" | |
| - name: Install NPM version specified in package.json | |
| uses: ./.github/actions/install-npm | |
| - name: Semantic release | |
| run: npx semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Trigger deployment workflow | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: gh workflow run deploy.yaml |