Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
chore: added .cache to gatsby action cache
Browse files Browse the repository at this point in the history
/spent 2m
  • Loading branch information
nico-i committed Feb 3, 2024
1 parent 23c0726 commit 67b958a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gatsby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
with:
path: |
node_modules
.cache
~/.cache/ms-playwright
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
with:
path: |
node_modules
.cache
~/.cache/ms-playwright
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- name: Download build artifact
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/psi-svg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
env:
SITE_URL: ${{ vars.SITE_URL }}
PSI_SVG_OUTPUT_PATH: ${{ vars.PSI_SVG_OUTPUT_PATH }}
PSI_SVG_OUTPUT_PATH: ${{ vars.PSI_SVG_OUTPUT_DIR }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -24,7 +24,8 @@ jobs:

- name: Run PSI-SVG
run: |
npx psi-svg $SITE_URL $PSI_SVG_OUTPUT_PATH --strategy=desktop
npx psi-svg $SITE_URL $PSI_SVG_OUTPUT_PATH/psi-desktop.svg --strategy=desktop
npx psi-svg $SITE_URL $PSI_SVG_OUTPUT_PATH/psi-mobile.svg --strategy=mobile
- name: Upload output as artifact
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarn test
yarn lint:types && yarn test

0 comments on commit 67b958a

Please sign in to comment.