-
Notifications
You must be signed in to change notification settings - Fork 23
30 lines (29 loc) · 1.08 KB
/
extraHeaders.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
30
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