From f51d6e4634983cc035a3873ec84a6ace38d226a1 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 27 Jun 2026 02:29:07 -0400 Subject: [PATCH] fix new apps folder naming --- .gitea/workflows/test.yml | 47 +++++++++++++++++++++++++++---------- apps/homepage/tsconfig.json | 1 + package.json | 3 +++ 3 files changed, 39 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 6df8c90..726617d 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -12,57 +12,80 @@ concurrency: env: NODE_VERSION: "20" - GIT_SSL_NO_VERIFY: "true" jobs: - api-tests: - name: API Unit Tests + type-check: + name: Type Check (all packages) runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - run: npm ci - run: npm run db:generate - run: npm run type-check - - run: npm run test:api - marketplace-tests: - name: Marketplace Unit Tests + api-tests: + name: API Unit Tests runs-on: ubuntu-latest + needs: type-check + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + - run: npm ci + - run: npm run db:generate + - run: npm run test:api + + homepage-tests: + name: Homepage Unit Tests + runs-on: ubuntu-latest + needs: type-check steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - run: npm ci - run: npm run build --workspace @rentaldrivego/types - - run: npm run test:marketplace + - run: npm run test:homepage + + storefront-tests: + name: Storefront Unit Tests + runs-on: ubuntu-latest + needs: type-check + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + - run: npm ci + - run: npm run build --workspace @rentaldrivego/types + - run: npm run test:storefront admin-tests: name: Admin Unit Tests runs-on: ubuntu-latest + needs: type-check steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - run: npm ci - run: npm run test:admin dashboard-tests: name: Dashboard Unit Tests runs-on: ubuntu-latest + needs: type-check steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - run: npm ci - run: npm run build --workspace @rentaldrivego/types - run: npm run test:dashboard @@ -70,6 +93,7 @@ jobs: integration-tests: name: API Integration Tests runs-on: ubuntu-latest + needs: type-check services: postgres: image: postgres:16-alpine @@ -101,7 +125,6 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} - cache: "npm" - run: npm ci - run: npm run db:generate - run: npm run db:deploy diff --git a/apps/homepage/tsconfig.json b/apps/homepage/tsconfig.json index 7fb8402..3579512 100644 --- a/apps/homepage/tsconfig.json +++ b/apps/homepage/tsconfig.json @@ -25,6 +25,7 @@ "useUnknownInCatchVariables": true, "forceConsistentCasingInFileNames": true, "verbatimModuleSyntax": true, + "types": ["vitest/globals", "@testing-library/jest-dom"], "paths": { "@/*": ["./src/*"] } diff --git a/package.json b/package.json index 161a8ec..a92f343 100644 --- a/package.json +++ b/package.json @@ -76,5 +76,8 @@ "node": ">=20.0.0", "npm": ">=10.0.0" }, + "overrides": { + "@types/tough-cookie": "^4.0.5" + }, "packageManager": "npm@10.5.0" }