diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1af21b53..299c678f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,3 +22,22 @@ jobs: preview-branch: gh-pages source-dir: build/site umbrella-dir: pr-preview + - run: mkdir /tmp/artifacts + - name: Run Lighthouse Report + uses: foo-software/lighthouse-check-action@master + with: + outputDirectory: /tmp/artifacts + urls: 'https://quickstarts.teradata.com/pr-preview/pr-${{ github.event.pull_request.number }},https://quickstarts.teradata.com/pr-preview/pr-${{ github.event.pull_request.number }}/nos.html' + device: 'all' + - name: Upload Lighthouse artifacts + uses: actions/upload-artifact@master + with: + name: Lighthouse reports + path: /tmp/artifacts + - name: Leave Comment + uses: foo-software/lighthouse-check-action@master + with: + accessToken: ${{ secrets.GITHUB_TOKEN }} + outputDirectory: /tmp/artifacts + urls: 'https://quickstarts.teradata.com/pr-preview/pr-${{ github.event.pull_request.number }},https://quickstarts.teradata.com/pr-preview/pr-${{ github.event.pull_request.number }}/nos.html' + device: 'desktop' \ No newline at end of file