mirror of
https://github.com/jakejarvis/stanza.git
synced 2026-07-16 18:05:58 -04:00
fix: run build before lint/test in CI so typechecking doesn't fail on unbuilt generated files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
@@ -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",
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user