fix: solve linting, formatting and ci/cd errors #780
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 Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| - develop | |
| pull_request: null | |
| workflow_dispatch: null | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV | |
| - name: "use node ${{ env.node_version }}" | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "${{ env.node_version }}" | |
| - name: "Install pnpm & dependencies" | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: | | |
| - recursive: true | |
| - args: [--frozen-lockfile] | |
| - name: Install Playwright Browsers | |
| run: pnpm playwright install --with-deps | |
| - name: Run Playwright tests | |
| run: pnpm playwright test | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report | |
| path: playwright-report/ | |
| retention-days: 30 |