-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (39 loc) · 1.12 KB
/
verify-page.yml
File metadata and controls
45 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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@v4
with:
fetch-depth: 0
- name: Setup Environment
uses: ./.github/actions/setup-workspace
- name: Run Playwright tests
run: pnpm stest
working-directory: ./examples
- name: Upload artifact
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: examples/test-results/*
retention-days: 3
- 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) }}