Skip to content

Commit 223ae70

Browse files
authored
Merge pull request #12693 from github/repo-sync
repo sync
2 parents 53a4cc7 + 7983236 commit 223ae70

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,20 @@ jobs:
7070
- name: Install dependencies
7171
run: npm ci
7272

73-
- if: ${{ github.repository == 'github/docs-internal' }}
74-
name: Clone early access
75-
run: npm run heroku-postbuild
73+
- name: Clone early access
74+
if: ${{ github.repository == 'github/docs-internal' }}
75+
run: script/early-access/clone-for-build.js
7676
env:
7777
DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
7878
GIT_BRANCH: ${{ github.head_ref || github.ref }}
7979

80-
- if: ${{ github.repository != 'github/docs-internal' }}
81-
name: Run build script
80+
- name: Cache nextjs build
81+
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353
82+
with:
83+
path: .next/cache
84+
key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/workflows/test.yml') }}
85+
86+
- name: Run build script
8287
run: npm run build
8388

8489
- name: Run tests

0 commit comments

Comments
 (0)