Skip to content

Commit daa1138

Browse files
authored
feat!: lighthouse 9 + use Docker runner instead of Node runner (#66)
1 parent 6c189a1 commit daa1138

File tree

23,075 files changed

+84
-4943995
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

23,075 files changed

+84
-4943995
lines changed

.github/workflows/extraHeaders.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
zeit-token: ${{ secrets.ZEIT_NOW_TOKEN }}
1616
now-org-id: ${{ secrets.ZEIT_NOW_ORG_ID }}
1717
now-project-id: ${{ secrets.ZEIT_NOW_PROJECT_ID }}
18-
- run: mkdir /tmp/artifacts
1918
- name: Run Lighthouse
2019
uses: ./
2120
with:

.github/workflows/foo-api.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@master
12-
- run: mkdir /tmp/artifacts
1312
- name: Run Lighthouse
1413
uses: ./
1514
with:

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@master
9-
- run: mkdir /tmp/artifacts
109
- name: Run Lighthouse
1110
uses: ./
1211
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.vscode
22
.now
3+
.DS_Store
4+
node_modules
5+
dist

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM foosoftware/lighthouse-check:5
2+
3+
COPY . .
4+
5+
RUN npm install
6+
RUN npm run build
7+
8+
# support a standard location for artifacts
9+
RUN mkdir -p /tmp/artifacts
10+
11+
CMD [ "node", "/dist/index.js" ]

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ inputs:
6868
wait:
6969
description: 'If "true", waits for all audit results to be returned, otherwise URLs are only enqueued.'
7070
runs:
71-
using: 'node12'
72-
main: 'dist/index.js'
71+
using: 'docker'
72+
image: 'Dockerfile'
7373
branding:
7474
icon: 'zap'
7575
color: 'green'

dist/helpers/getUrlsFromJson.js

Lines changed: 0 additions & 40 deletions
This file was deleted.

dist/helpers/getUrlsFromJson.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/index.js

Lines changed: 0 additions & 105 deletions
This file was deleted.

dist/index.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)