1
0
mirror of synced 2026-01-06 06:02:35 -05:00

cache .next/cache between unit tests (#23415)

Part of #1246
This commit is contained in:
Peter Bengtsson
2021-12-06 13:46:06 -05:00
committed by GitHub
parent 531cae8415
commit 7d17ce2262

View File

@@ -70,15 +70,20 @@ jobs:
- name: Install dependencies
run: npm ci
- if: ${{ github.repository == 'github/docs-internal' }}
name: Clone early access
run: npm run heroku-postbuild
- name: Clone early access
if: ${{ github.repository == 'github/docs-internal' }}
run: script/early-access/clone-for-build.js
env:
DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
GIT_BRANCH: ${{ github.head_ref || github.ref }}
- if: ${{ github.repository != 'github/docs-internal' }}
name: Run build script
- name: Cache nextjs build
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
with:
path: .next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
- name: Run build script
run: npm run build
- name: Run tests