File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 88 ACTIONS_ALLOW_UNSECURE_COMMANDS : true
99 steps :
1010 - uses : actions/checkout@master
11+ - run : mkdir -p ${{ github.workspace }}/tmp/artifacts
1112 - uses : amondnet/now-deployment@master
1213 id : now
1314 with :
@@ -20,10 +21,10 @@ jobs:
2021 with :
2122 extraHeaders : ' { "x-test-1": "hello world", "x-test-2": "foo" }'
2223 fooApiToken : ${{ secrets.LIGHTHOUSE_CHECK_API_TOKEN }}
23- outputDirectory : /tmp/artifacts
24+ outputDirectory : ${{ github.workspace }} /tmp/artifacts
2425 urlsJson : ' [["cf8b27b3-ccb8-4477-83b6-ded2c375f977", "${{ steps.now.outputs.preview-url }}"]]'
2526 - name : Upload artifacts
2627 uses : actions/upload-artifact@master
2728 with :
2829 name : Lighthouse reports
29- path : /tmp/artifacts
30+ path : ${{ github.workspace }} /tmp/artifacts
Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@master
9+ - run : mkdir -p ${{ github.workspace }}/tmp/artifacts
910 - name : Run Lighthouse
1011 uses : ./
1112 with :
@@ -18,12 +19,12 @@ jobs:
1819 gitBranch : ${{ github.ref }}
1920 gitHubAccessToken : ${{ secrets.LIGHTHOUSE_CHECK_GITHUB_ACCESS_TOKEN }}
2021 maxRetries : 1
21- outputDirectory : /tmp/artifacts
22+ outputDirectory : ${{ github.workspace }} /tmp/artifacts
2223 urls : ' https://www.foo.software,https://www.foo.software/tag/articles/'
2324 sha : ${{ github.sha }}
2425 slackWebhookUrl : ${{ secrets.LIGHTHOUSE_CHECK_WEBHOOK_URL }}
2526 - name : Upload artifacts
2627 uses : actions/upload-artifact@master
2728 with :
2829 name : Lighthouse reports
29- path : /tmp/artifacts
30+ path : ${{ github.workspace }} /tmp/artifacts
Original file line number Diff line number Diff line change 55RUN npm install
66RUN npm run build
77
8- # support a standard location for artifacts
9- RUN mkdir -p /tmp/artifacts
10-
118CMD [ "node" , "/dist/index.js" ]
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ For detailed documentation of all inputs and advanced configuration - visit [the
6565 <td align="center" width="33.3333333333333%">
6666 <figure>
6767 <a href="https://lighthouse-check.s3.amazonaws.com/images/github-actions/github-action-lighthouse-check-lighthouse-report.png">
68- <img alt="Lighthouse Check GitHub action HTML report" src="https://lighthouse-check.s3.amazonaws.com/images/github-actions/github-action-lighthouse-check- lighthouse-report.png" />
68+ <img alt="Lighthouse Check GitHub action HTML report" src="https://lighthouse-check.s3.amazonaws.com/images/github-actions/lighthouse-report.png" />
6969 </a>
7070 <figcaption>
7171 HTML Reports
You can’t perform that action at this time.
0 commit comments