Skip to content

Commit b33d99d

Browse files
committed
remove tests form build since they happen in CI
1 parent 1f14394 commit b33d99d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"res:watch": "rescript watch",
1515
"res:clean": "rescript clean",
1616
"res:build": "rescript build",
17-
"build": "rescript build && node scripts/test-hrefs.mjs && npm run sync-bundles && npm run update-index && react-router build",
17+
"build": "rescript build && npm run sync-bundles && npm run update-index && react-router build",
1818
"test": "node scripts/test-examples.mjs && node scripts/test-hrefs.mjs",
1919
"reanalyze": "reanalyze -all-cmt .",
2020
"update-index": "npm run generate-llms && node scripts/generate_feed.mjs > public/blog/feed.xml",
@@ -83,4 +83,4 @@
8383
"vite-plugin-devtools-json": "^1.0.0",
8484
"vite-plugin-env-compatible": "^2.0.1"
8585
}
86-
}
86+
}

scripts/test-hrefs.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ for (const file of files) {
2929
if (
3030
log &&
3131
!warningMessage.includes("api/") &&
32+
// When running on CI it fails to ignore the link directly to the blog root
33+
// https://github.com/rescript-lang/rescript-lang.org/actions/runs/19520461368/job/55882556586?pr=1115#step:6:338
3234
!warningMessage.includes("`../../blog`") &&
3335
markdownFolders.some((folder) => warningMessage.includes(`${folder}`)) &&
3436
!warningMessage.includes(".txt")

0 commit comments

Comments
 (0)