Skip to content

Commit f9d9261

Browse files
committed
Build before lint in CI
The lint's type-aware rules read stackctl's types from the package's compiled dist/, which a fresh runner doesn't have until it builds.
1 parent 2231aae commit f9d9261

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,20 @@ jobs:
4242

4343
- run: pnpm install --frozen-lockfile
4444

45-
# The root lint covers `example/` too, and its type-aware rules read the example's types.
4645
- run: pnpm --dir example install --frozen-lockfile
4746

48-
- run: pnpm lint
49-
50-
# Build before test: some tests import the package's compiled `dist/`. The build also
51-
# builds the docs site, which fails on a dead link, and packages its llms.txt.
47+
# Build first: the lint's type-aware rules read `stackctl`'s types in `example/` (and
48+
# `postinstall.js`'s import) from the package's compiled `dist/`, and some tests import it.
49+
# The build also builds the docs site, which fails on a dead link, and packages its llms.txt.
5250
- run: pnpm build
5351

5452
# The source maps name the package's own sources, so a build change that would publish the
5553
# runner's paths fails here, before a release.
5654
- run: node scripts/check-source-maps.ts
5755

56+
# The root lint covers `example/` too.
57+
- run: pnpm lint
58+
5859
- run: pnpm test
5960

6061
# The real CLI on a pseudo-terminal (python3's stdlib `pty`, which the runner has). It

0 commit comments

Comments
 (0)