Update reusable-hugo-workflow.yml #232
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 End To End (e2e) Tests Workflow | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: | |
| - main | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| tests_e2e: | |
| name: Run end-to-end tests for live website | |
| runs-on: ubuntu-latest | |
| env: | |
| BASE_URL_TESTING: ${{ vars.BASE_URL_TESTING }} | |
| REUSE_SERVER: 'true' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/[email protected] | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install playwright browsers | |
| run: pnpm exec playwright install --with-deps | |
| - name: Run tests | |
| run: pnpm exec playwright test |