Run CI on Source for every pull request #735 (GitHub #731)
Mergedtombeckenhammerged 5 commits into
main fromci/source-ci-workflowmerged by tombeckenham View on GitHubtombeckenham pushedf70e43c
- .source/workflows/ci.ts line 27Outdated@@ -0,0 +7,21 @@7+8+export default defineWorkflow('ci', {9+ on: [pullRequest(), push({ branches: ['main'] })],10+}).job('ci', {11+ // Full history: the changeset check diffs against origin/main.12+ checkout: { depth: 0 },13+ egress: ['registry.npmjs.org'],14+ timeoutMinutes: 30,15+ steps: [16+ // Node from .node-version.17+ setup.node(),18+ setup.pnpm(),19+ { name: 'Install', run: 'pnpm install --frozen-lockfile' },20+ { name: 'Format check', run: 'pnpm run check' },21+ { name: 'Lint', run: 'pnpm run lint' },22+ { name: 'Typecheck', run: 'pnpm run typecheck' },23+ // A PR that changes a published package needs a changeset (or24+ // `pnpm exec changeset --empty`).25+ {26+ name: 'Changeset check',27+ if: (ctx) => ctx.event === 'pull_request',
Sign in to join this conversation.
coderabbitai[bot](GitHub profile, opens in a new tab) reviewed
Actionable comments posted: 1
8ec99d4a-0106-4578-9727-a2bb6b1b35a4Reviewing files that changed from the base of the PR and between 13ddb28d45f017c14ba89cccfe501343be13b455 and b51ad891e3f23323b6663a48bb19960853b6142a.
.source/workflows/ci.tsIncluded review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.