Lighthouse #2
This file contains hidden or 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: Lighthouse | |
| on: | |
| workflow_run: | |
| workflows: [".NET Core"] | |
| types: [completed] | |
| branches: [master] | |
| jobs: | |
| lighthouse: | |
| # Only run when the deploy workflow succeeded | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Wait for GitHub Pages to propagate | |
| run: sleep 60 | |
| - name: Audit URLs using Lighthouse | |
| uses: treosh/lighthouse-ci-action@v12 | |
| with: | |
| urls: | | |
| https://petrsvihlik.com/ | |
| https://petrsvihlik.com/pages/about-me | |
| https://petrsvihlik.com/pages/projects | |
| https://petrsvihlik.com/posts/the-rise-of-jamstack | |
| uploadArtifacts: true | |
| temporaryPublicStorage: true |