Skip to content

Commit c39f880

Browse files
committed
chore: Update project configuration for testing and CI enhancements
- Added new scripts for testing and workflow validation in package.json. - Updated turbo.json to include dependencies for the test command. - Removed the outdated CI workflow file to streamline CI processes. - Enhanced trunk.yaml with pre-push actions for type checking, building, and testing. These changes improve the testing framework and streamline CI processes, ensuring better code quality and project maintainability.
1 parent 6d76088 commit c39f880

4 files changed

Lines changed: 26 additions & 61 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.trunk/trunk.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,25 @@ plugins:
3131
actions:
3232
enabled:
3333
- trunk-announce
34-
- trunk-check-pre-push
35-
- trunk-fmt-pre-commit
34+
- trunk-check-pre-push # Runs linting (ESLint, actionlint, etc.)
35+
- trunk-fmt-pre-commit # Formats code before commit
3636
- trunk-upgrade-available
37+
- type-check-pre-push # TypeScript type checking
38+
- build-pre-push # Build verification
39+
- test-pre-push # Test suite
40+
definitions:
41+
- id: type-check-pre-push
42+
description: Run TypeScript type checking before push
43+
triggers:
44+
- git_hooks: [pre-push]
45+
run: pnpm type-check
46+
- id: build-pre-push
47+
description: Build project to verify compilation before push
48+
triggers:
49+
- git_hooks: [pre-push]
50+
run: pnpm build
51+
- id: test-pre-push
52+
description: Run test suite before push
53+
triggers:
54+
- git_hooks: [pre-push]
55+
run: pnpm test

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
3333
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\"",
3434
"type-check": "turbo run type-check",
35+
"test": "turbo run test",
36+
"workflow:validate": "trunk check .github/workflows",
3537
"changelog:package": "tsx scripts/generate-package-changelog.ts",
3638
"changelog:cli": "pnpm changelog:package opennextjs-cli",
3739
"changelog:mcp": "pnpm changelog:package opennextjs-mcp",

turbo.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"type-check": {
1212
"dependsOn": ["^build"]
1313
},
14+
"test": {
15+
"dependsOn": ["^build"]
16+
},
1417
"dev": {
1518
"cache": false,
1619
"persistent": true

0 commit comments

Comments
 (0)