diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index b92a8dc2..0100209b 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -46,6 +46,16 @@ jobs: key: ${{ runner.os }}-gatsby-build-preview-${{github.head_ref}}-${{ github.run_id }} restore-keys: | ${{ runner.os }}-gatsby-build-preview-${{github.head_ref}}- + - name: Cache Gatsby files + id: cache-gatsby-static-files + uses: actions/cache@v3 + with: + path: | + .cache + public/static + key: ${{ runner.os }}-gatsby-static-files-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-gatsby-static-files- - run: yarn install - name: Run ESLint run: yarn lint diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index a6c59cfa..abc272d4 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -34,6 +34,16 @@ jobs: key: ${{ runner.os }}-gatsby-build-prod-${{ github.run_id }} restore-keys: | ${{ runner.os }}-gatsby-build-prod- + - name: Cache Gatsby files + id: cache-gatsby-static-files + uses: actions/cache@v3 + with: + path: | + .cache + public/static + key: ${{ runner.os }}-gatsby-static-files-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-gatsby-static-files- - run: yarn install - name: Run ESLint run: yarn lint diff --git a/test b/test new file mode 100644 index 00000000..e69de29b