Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 42 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ jobs:
exit 1
fi

- run: npm ci
- name: Restore node_modules (cache hit)
id: node-modules-cache
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install node_modules (cache miss)
run: npm ci
if: steps.node-modules-cache.outputs.cache-hit != 'true'

- run: npx tsx bin/post-codeowners-comment/index.ts
continue-on-error: true
Expand Down Expand Up @@ -125,18 +134,14 @@ jobs:
exit 1
fi

- name: Cache node_modules
- name: Restore node_modules (cache hit)
id: node-modules-cache
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Run sync (if cache hit)
run: npm run sync
if: steps.node-modules-cache.outputs.cache-hit == 'true'

- name: Node install (cache miss)
- name: Install node_modules (cache miss)
run: npm ci
if: steps.node-modules-cache.outputs.cache-hit != 'true'

Expand Down Expand Up @@ -209,7 +214,16 @@ jobs:
node-version: 22.x
cache: npm

- run: npm ci
- name: Restore node_modules (cache hit)
id: node-modules-cache
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install node_modules (cache miss)
run: npm ci
if: steps.node-modules-cache.outputs.cache-hit != 'true'

- uses: actions/download-artifact@v8
with:
Expand Down Expand Up @@ -255,7 +269,16 @@ jobs:
node-version: 22.x
cache: npm

- run: npm ci
- name: Restore node_modules (cache hit)
id: node-modules-cache
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install node_modules (cache miss)
run: npm ci
if: steps.node-modules-cache.outputs.cache-hit != 'true'

- name: Post PR CI failure comment
continue-on-error: true
Expand All @@ -281,7 +304,16 @@ jobs:
node-version: 22.x
cache: npm

- run: npm ci
- name: Restore node_modules (cache hit)
id: node-modules-cache
uses: actions/cache@v5
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install node_modules (cache miss)
run: npm ci
if: steps.node-modules-cache.outputs.cache-hit != 'true'

- uses: actions/download-artifact@v8
with:
Expand Down
Loading