Scheduled jobs: Lighthouse CI #633
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: "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 |