-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (27 loc) · 1.17 KB
/
run_lighthouse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Lighthouse CI check
on:
deployment_status
jobs:
run:
name: Lighthouse CI check
runs-on: ubuntu-latest
if: github.event.deployment_status.state == 'success'
steps:
- name: Download repository with all commits
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Log payload
run: cat "$GITHUB_EVENT_PATH"
- name: Debug payload branch
run: echo "${{ github.event.deployment.payload.branch }}"
- name: Set branch environment variable
run: echo "GITHUB_BRANCH=${{ github.event.deployment.payload.branch }}" >> $GITHUB_ENV
- uses: docker://quay.csssr.cloud/csssr/github-info:v2
id: gh
- name: Run Lighthouse for provided urls
run: |
npx @lhci/[email protected] autorun --collect.url=https://${{ steps.gh.outputs.releaseID }}.csssr-new-blog.csssr.cloud/en --collect.url=https://${{ steps.gh.outputs.releaseID }}.csssr-new-blog.csssr.cloud/en/article/offshore-web-development
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
LHCI_BUILD_CONTEXT__CURRENT_BRANCH: https://${{ steps.gh.outputs.releaseID }}.csssr-new-blog.csssr.cloud