From 67b958a3e2b539a799278378f81165b184c35210 Mon Sep 17 00:00:00 2001 From: Nico Ismaili Date: Sun, 4 Feb 2024 00:32:12 +0100 Subject: [PATCH] chore: added .cache to gatsby action cache /spent 2m --- .github/workflows/gatsby.yml | 2 ++ .github/workflows/psi-svg.yml | 5 +++-- .husky/pre-push | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gatsby.yml b/.github/workflows/gatsby.yml index 4e08472..f057a05 100644 --- a/.github/workflows/gatsby.yml +++ b/.github/workflows/gatsby.yml @@ -40,6 +40,7 @@ jobs: with: path: | node_modules + .cache ~/.cache/ms-playwright key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} restore-keys: | @@ -75,6 +76,7 @@ jobs: with: path: | node_modules + .cache ~/.cache/ms-playwright key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} - name: Download build artifact diff --git a/.github/workflows/psi-svg.yml b/.github/workflows/psi-svg.yml index 0899194..30e1fb5 100644 --- a/.github/workflows/psi-svg.yml +++ b/.github/workflows/psi-svg.yml @@ -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 @@ -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 diff --git a/.husky/pre-push b/.husky/pre-push index 09e3287..7a1ba2b 100644 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1 +1 @@ -yarn test \ No newline at end of file +yarn lint:types && yarn test \ No newline at end of file