Better pipeline #43
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] | ||
| pull_request: | ||
| branches: [main, master] | ||
| jobs: | ||
| frontend-testing: | ||
| needs: publish | ||
| timeout-minutes: 30 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| repository: Kattenelvis/flowback-interface-testing | ||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Install Playwright Browsers | ||
| run: npx playwright install --with-deps chromium | ||
| - name: Run Smoke tests (basic login functionality for all default users) | ||
| run: npx playwright test -g "Smoke-Test" --project chromium --retries 0 | ||
| --workers 1 --trace on | ||
| - name: Run the rest of the tests | ||
| run: npx playwright test . --project chromium --retries 0 --workers 1 --trace on | ||
| --grep-invert "Smoke-Test" | ||
| - uses: actions/upload-artifact@v4 | ||
| if: ${{ !cancelled() }} | ||
| with: | ||
| name: playwright-report | ||
| path: | | ||
| playwright-report/ | ||
| test-results/ | ||
| retention-days: 30 | ||