Skip to content

Commit 9d9a903

Browse files
authored
fix: artifact upload (#67)
1 parent 9d32f56 commit 9d9a903

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/extraHeaders.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
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

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
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

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,4 @@ COPY . .
55
RUN npm install
66
RUN npm run build
77

8-
# support a standard location for artifacts
9-
RUN mkdir -p /tmp/artifacts
10-
118
CMD [ "node", "/dist/index.js" ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)