-
Notifications
You must be signed in to change notification settings - Fork 221
39 lines (39 loc) · 1.29 KB
/
check-lighthouse.yml
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
name: "Scheduled jobs: Lighthouse CI"
on:
schedule:
# * is a special character in YAML so you have to quote this string.
# Run every day at 3:00PM UTC.
- cron: '0 15 * * *'
workflow_dispatch:
jobs:
all:
name: Lighthouse
runs-on: ubuntu-latest
steps:
- name: Run Lighthouse
uses: treosh/lighthouse-ci-action@v12
with:
urls: |
https://www.pulumi.com/
https://www.pulumi.com/product/
https://www.pulumi.com/pricing/
https://www.pulumi.com/docs/get-started/
https://www.pulumi.com/docs/intro/concepts/resources/
https://www.pulumi.com/registry/
https://www.pulumi.com/registry/packages/aws/api-docs/s3/bucket/
uploadArtifacts: true
notify:
if: failure()
name: Send slack notification
runs-on: ubuntu-latest
needs: [all]
steps:
- name: Slack Notification
uses: docker://sholung/action-slack-notify:v2.3.0
env:
SLACK_CHANNEL: docs-ops
SLACK_COLOR: "#F54242"
SLACK_MESSAGE: "lighthouse job failure in pulumi/docs repo :meow_sad:"
SLACK_USERNAME: docsbot
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_ICON: https://www.pulumi.com/logos/brand/avatar-on-white.png