Skip to content
Source
Sign inSign up
TanStack/showcase
A read-only demo of every feature
Every page of this repository is open, and nothing can change. Take a guided tour of what TanStack Source does.

ci: cache the CI steps #4

Opentanstack-sourcewants to merge 1 commit intomain fromfactory/ci-cacheopened

Showing 1 changed file with 2 additions and 2 deletions.

x
0 of 1 viewed, 1 left
2 additions and 2 deletions.source/workflows/ci.tsModified
View file
@@ -5,5 +5,5 @@
const install = [setup.node(), setup.pnpm(), { name: 'Install dependencies', run: 'pnpm install --frozen-lockfile' }]
​
export default defineWorkflow('ci', { on: [pullRequest({ branches: ['main'] }), push({ branches: ['main'] })] })
- .job('types', { egress, steps: [...install, { name: 'Check the types', run: 'pnpm typecheck' }] })
- .job('test', { egress, steps: [...install, { name: 'Run the tests', run: 'pnpm test' }] })
+ .job('types', { egress, steps: [...install, { name: 'Check the types', run: 'pnpm typecheck', cache: { inputs: ['.corepack.env', '.npmrc', 'package.json', 'pnpm-lock.yaml', 'src', 'test', 'tsconfig.json'] } }] })
+ .job('test', { egress, steps: [...install, { name: 'Run the tests', run: 'pnpm test', cache: { inputs: ['.corepack.env', '.npmrc', 'package.json', 'pnpm-lock.yaml', 'src', 'test', 'tsconfig.json'] } }] })