Skip to content

feat: Lighthouse 12 #291

feat: Lighthouse 12

feat: Lighthouse 12 #291

Workflow file for this run

name: Test Extra Headers
on: [pull_request]
jobs:
lighthouse:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@master
- run: mkdir -p ${{ github.workspace }}/tmp/artifacts
- uses: amondnet/vercel-action@master
id: vercelAction
with:
github-comment: false
vercel-token: ${{ secrets.ZEIT_NOW_TOKEN }}
vercel-org-id: ${{ secrets.ZEIT_NOW_ORG_ID }}
vercel-project-id: ${{ secrets.ZEIT_NOW_PROJECT_ID }}
- name: Run Lighthouse
uses: ./
with:
extraHeaders: '{ "x-test-1": "hello world", "x-test-2": "foo" }'
fooApiToken: ${{ secrets.LIGHTHOUSE_CHECK_API_TOKEN }}
outputDirectory: ${{ github.workspace }}/tmp/artifacts
urlsJson: '[["cf8b27b3-ccb8-4477-83b6-ded2c375f977", "${{ steps.vercelAction.outputs.preview-url }}"]]'
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: Lighthouse reports
path: ${{ github.workspace }}/tmp/artifacts