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