Normalize URL construction to prevent double slashes #30
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 | |
| permissions: | |
| contents: read | |
| checks: write | |
| id-token: write | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20.x' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install Playwright | |
| run: npx playwright install --with-deps | |
| - name: Create .env file | |
| run: echo "DEMO_BASE_URL=https://hypersequent.github.io/bistro/" > .env | |
| - name: Run Playwright tests | |
| run: npx playwright test | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-test-results | |
| path: test-results/ | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: junit-results | |
| path: junit-results/ | |
| - name: Publish JUnit Report | |
| uses: mikepenz/action-junit-report@v3 | |
| if: always() # always run even if the previous step fails | |
| with: | |
| report_paths: 'junit-results/*.xml' |