mirror of
https://github.com/stablyai/orca.git
synced 2026-10-01 16:02:03 +00:00
perf(ci): cache pnpm verification records on Linux (#23568)
* perf(ci): pilot pnpm verification record caching on Linux * test(ci): review pnpm verification record in mobile cache audit
This commit is contained in:
@@ -48,7 +48,11 @@ describe('CI dependency download caches', () => {
|
||||
action.runs.steps.findIndex((step) => step.name === 'Install dependencies')
|
||||
)
|
||||
const saves = action.runs.steps.filter((step) => step.uses === 'actions/cache/save@v5')
|
||||
expect(saves).toEqual([])
|
||||
expect(saves).toHaveLength(1)
|
||||
expect(saves[0].name).toBe('Save pnpm verification record on main')
|
||||
expect(saves[0].if).toContain("github.ref == 'refs/heads/main'")
|
||||
expect(saves[0].if).toContain("github.event_name != 'pull_request'")
|
||||
expect(saves[0].with.path).toBe('${{ steps.verification-cache.outputs.path }}')
|
||||
})
|
||||
|
||||
it('restores Windows packaging downloads from the release cache without a PR upload', () => {
|
||||
|
||||
@@ -120,6 +120,8 @@ const BUNDLER_CACHE_PATHS = ['metro-cache', '.expo', 'node_modules/.cache']
|
||||
const REVIEWED_COMPUTED_PATHS = [
|
||||
'${{ steps.electron-package-cache.outputs.cache-root }}',
|
||||
'${{ steps.pnpm-store.outputs.path }}',
|
||||
// Only pnpm's lockfile-verified.jsonl record, never Metro transforms.
|
||||
'${{ steps.verification-cache.outputs.path }}',
|
||||
"${{ github.event_name != 'pull_request' && 'pnpm' || '' }} store"
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user