Verifies gh-page is up and running #1856
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: Verifies gh-page is up and running | |
on: | |
schedule: | |
- cron: "0 */4 * * 1-5" | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["pages-build-deployment"] | |
types: [completed] | |
branches: | |
- "main" | |
jobs: | |
verify-gh-page: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: | | |
corepack enable | |
corepack prepare --activate | |
pnpm install --frozen-lockfile | |
- name: Run Playwright tests | |
run: pnpm stest | |
working-directory: ./examples | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: playwright-report | |
path: examples/test-results/* | |
retention-days: 5 | |
- name: Notify in Teams | |
if: failure() | |
uses: ./.github/actions/notify-teams | |
id: notify-teams | |
with: | |
webhook_url: ${{ secrets.TEAMS_WEBHOOK_DEV }} | |
summary: "${{ github.workflow }} ${{ github.job }} failed" | |
notification_summary: "${{ github.job }} failed!" | |
github: ${{ toJson(github) }} | |
steps: ${{ toJson(steps) }} |