fix: run build before lint/test in CI so typechecking doesn't fail on unbuilt generated files

This commit is contained in:
2026-05-27 15:12:08 -04:00
parent f6fa1aebaf
commit 7554ae92eb
3 changed files with 23 additions and 14 deletions
+3 -3
View File
@@ -22,15 +22,15 @@ jobs:
node-version: 24
cache: true
- name: Build
run: vp run build
- name: Lint
run: vp check
- name: Tests
run: vp test
- name: Build
run: vp run build
- name: Smoke-test built CLI
run: |
node apps/cli/dist/bin.mjs --version
+6 -3
View File
@@ -29,15 +29,18 @@ jobs:
node-version: 24
cache: true
# TODO: we need to build the entire repo here just so that typechecking
# passes in the next step; otherwise, the web app is missing the built
# content-collections files and hard-fails on apps/web/src/lib/source.ts.
- name: Build
run: vp run build
- name: Lint
run: vp check
- name: Tests
run: vp test
- name: Build
run: vp run build:cli
- name: Create release PR or publish
id: changesets
uses: changesets/action@v1
+14 -8
View File
@@ -1,12 +1,18 @@
import { defineConfig } from "vite-plus";
export default defineConfig({
test: {
projects: ["apps/*", "packages/*"],
run: {
cache: {
scripts: true,
tasks: true,
},
},
staged: {
"*": "vp check --fix",
},
test: {
projects: ["apps/*", "packages/*"],
},
fmt: {
sortImports: {},
sortTailwindcss: {
@@ -31,6 +37,12 @@ export default defineConfig({
},
lint: {
plugins: ["oxc", "eslint", "typescript", "unicorn", "import", "promise", "vitest"],
jsPlugins: [
{
name: "vite-plus",
specifier: "vite-plus/oxlint-plugin",
},
],
categories: {
correctness: "error",
suspicious: "warn",
@@ -96,11 +108,5 @@ export default defineConfig({
typeAware: true,
typeCheck: true,
},
jsPlugins: [
{
name: "vite-plus",
specifier: "vite-plus/oxlint-plugin",
},
],
},
});