fix: use package.json script for cleanup-orphans command
Added test:cleanup-orphans script to package.json and updated workflow to use it, fixing "None of the selected packages has a tsx script" error.
This commit is contained in:
parent
8219f0dde5
commit
83e2cededa
2 changed files with 3 additions and 2 deletions
4
.github/workflows/integration-tests.yml
vendored
4
.github/workflows/integration-tests.yml
vendored
|
|
@ -48,7 +48,7 @@ jobs:
|
|||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
INTEGRATION_TEST_USER_ID: ${{ secrets.INTEGRATION_TEST_USER_ID }}
|
||||
run: pnpm --filter=@tpmjs/web tsx src/test/integration/_helpers/cleanup-orphans.ts
|
||||
run: pnpm --filter=@tpmjs/web test:cleanup-orphans
|
||||
|
||||
- name: Wait for API
|
||||
run: |
|
||||
|
|
@ -124,4 +124,4 @@ jobs:
|
|||
env:
|
||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||
INTEGRATION_TEST_USER_ID: ${{ secrets.INTEGRATION_TEST_USER_ID }}
|
||||
run: pnpm --filter=@tpmjs/web tsx src/test/integration/_helpers/cleanup-orphans.ts
|
||||
run: pnpm --filter=@tpmjs/web test:cleanup-orphans
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
"test:integration": "INTEGRATION_TESTS=true vitest run --config vitest.integration.config.ts",
|
||||
"test:integration:watch": "INTEGRATION_TESTS=true vitest --config vitest.integration.config.ts",
|
||||
"test:setup-credentials": "tsx src/test/integration/_helpers/setup-test-credentials.ts",
|
||||
"test:cleanup-orphans": "tsx src/test/integration/_helpers/cleanup-orphans.ts",
|
||||
"generate-og": "tsx scripts/generate-og-images.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue