Having a simple GitHub Action that would handle the output of the Lighthouse CI Action.
- Post to Slack
jobs:
yourjob:
steps:
- name: Audit URLs using Lighthouse
id: audit
uses: treosh/lighthouse-ci-action@v10
with:
urls: |
https://example.com
- name: Handle the audit output
uses: derniercri/lighthouse-ci-result-transformer@latest
with:
resultsPath: ${{steps.audit.outputs.resultsPath}}
slackWebhookUrl: ${{ github.secrets.SLACK_WEBHOOK_URL }} # Optional
# Build, commit your changes and create a tag
$ yarn distribute
# Push to GitHub
$ git push origin --tags
You will need to create a release to publish the action to the GitHub Marketplace