Skip to content

Commit 34b9f0a

Browse files
committed
Merge branch 'main' into feat/daily-aoc-post
2 parents e3fe8f1 + ac10bce commit 34b9f0a

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ jobs:
3535
- name: Lint
3636
run: npm run lint
3737

38-
- name: Build
39-
run: npm run build:ci
40-
env:
41-
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
42-
CLIENT_ID: ${{ secrets.CLIENT_ID }}
43-
44-
- name: Run tests
45-
run: npm run test:ci
38+
- name: Build and test
39+
run: npm run test:build
4640

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build:ci": "npm run build:ts && npm run build:copy",
88
"build:dev": "pnpm run build:ts && pnpm run build:copy",
99
"build:ts": "tsup",
10+
"build:test": "tsup --entry 'src/**/*.ts' --entry 'test/**/*.ts'",
1011
"build:copy": "node scripts/copy-assets.js",
1112
"start": "node dist/index.js",
1213
"dev": "tsx watch src/index.ts",
@@ -22,7 +23,8 @@
2223
"check:fix": "biome check --write .",
2324
"typecheck": "tsc --noEmit",
2425
"test": "tsx --test '**/*.test.ts'",
25-
"test:ci": "node --test dist/**/*.test.js",
26+
"test:ci": "node --test $(find dist -name '*.test.js')",
27+
"test:build": "npm run build:test && npm run test:ci",
2628
"prepare": "husky",
2729
"pre-commit": "lint-staged",
2830
"sync-guides": "tsx scripts/sync-guides.js",

0 commit comments

Comments
 (0)