Skip to content

Scheduled jobs: Lighthouse CI #1265

Scheduled jobs: Lighthouse CI

Scheduled jobs: Lighthouse CI #1265

permissions: write-all # Equivalent to default permissions + id-token: write
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: null
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: Fetch secrets from ESC
id: esc-secrets
uses: pulumi/esc-action@v3
- 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: ${{ steps.esc-secrets.outputs.SLACK_WEBHOOK_URL }}
SLACK_ICON: https://www.pulumi.com/logos/brand/avatar-on-white.png
env:
ESC_ACTION_OIDC_AUTH: true
ESC_ACTION_OIDC_ORGANIZATION: pulumi
ESC_ACTION_OIDC_REQUESTED_TOKEN_TYPE: urn:pulumi:token-type:access_token:organization
ESC_ACTION_ENVIRONMENT: github-secrets/pulumi-docs
ESC_ACTION_EXPORT_ENVIRONMENT_VARIABLES: false