VA-436-2: use absolute path because otherwise link didnt work in paat… #859
This file contains 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: Build and test master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
uses: ./.github/workflows/_build.yaml | |
secrets: inherit | |
generate-playwright-report: | |
name: Generate report from Playwright runs | |
runs-on: ubuntu-24.04 | |
needs: build | |
if: ${{ !cancelled() }} | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{steps.pages-deployment.outputs.page_url}} | |
concurrency: github-pages | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'npm' | |
- run: npm ci | |
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 | |
with: | |
path: all-blob-reports | |
pattern: playwright-blob-* | |
merge-multiple: true | |
- run: npx playwright merge-reports --reporter github,html ./all-blob-reports | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | |
with: | |
name: playwright-html-report | |
path: playwright-report | |
retention-days: 14 | |
- name: Setup Pages | |
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 | |
with: | |
path: 'playwright-report' | |
- name: Deploy artifact | |
id: pages-deployment | |
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 | |
deploy: | |
needs: build | |
uses: ./.github/workflows/_deploy-all.yaml | |
secrets: inherit |