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: share the install steps of the tasks library, at their tag ci-steps-v1 #21

MergedAlemTuzlakmerged 1 commit intomain fromci/shared-steps-tagmerged by AlemTuzlak

Showing 3 changed files with 16 additions and 4 deletions.

x
0 of 3 viewed, 3 left
5 additions and 4 deletions.source/workflows/ci.tsModified
View file
@@ -1,9 +1,10 @@
-import { defineWorkflow, pullRequest, push, setup } from '@tanstack-source/ci'
+import { defineWorkflow, pullRequest, push } from '@tanstack-source/ci'
+// The shared install steps of the tasks library, at their tag ci-steps-v1.
+import { install } from 'src:TanStack/showcase-site@ci-steps-v1/ci/steps.ts'
​
// A job reaches only the hosts that it lists. pnpm and the packages come from the npm registry.
const egress = ['registry.npmjs.org']
-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' }] })
+ .job('test', { egress, steps: [...install(), { name: 'Run the tests', run: 'pnpm test' }] })
10 additions and 0 deletions.source/src.lockAdded
View file
@@ -0,0 +1,10 @@
+{
+ "version": 1,
+ "imports": {
+ "TanStack/showcase-site@ci-steps-v1": {
+ "commit": "f73cb85a0e743e04962095b96d0b49039497632a",
+ "tree": "b2e14d4e998ebd96c00217b8007665bab82b0864",
+ "hash": "sha256:2e790c8bd0afe8329f40816cc0be501e9c71d0145b572f5112bca64391847e61"
+ }
+ }
+}
1 addition and 0 deletions.gitignoreModified
View file
@@ -1,2 +1,3 @@