diff --git a/.github/workflows/build-lint-unit.yml b/.github/workflows/build-lint-unit.yml index 77d981bb2..14391ca2f 100644 --- a/.github/workflows/build-lint-unit.yml +++ b/.github/workflows/build-lint-unit.yml @@ -10,6 +10,10 @@ concurrency: env: CI: true + # Turborepo Remote Caching + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + TURBO_REMOTE_ONLY: true jobs: # Build job - runs in parallel @@ -32,7 +36,6 @@ jobs: env: NODE_ENV: production SKIP_ENV_CHECK: true - TURBO_CACHE_DIR: .turbo TURBO_TELEMETRY_DISABLED: 1 # Pass all secrets from the testing environment for build DATABASE_URL: ${{ secrets.DATABASE_URL }} @@ -62,7 +65,6 @@ jobs: - name: Lint all packages run: pnpm turbo lint env: - TURBO_CACHE_DIR: .turbo TURBO_TELEMETRY_DISABLED: 1 # Test job - runs after build completes @@ -84,13 +86,11 @@ jobs: env: NODE_ENV: production SKIP_ENV_CHECK: true - TURBO_CACHE_DIR: .turbo TURBO_TELEMETRY_DISABLED: 1 - name: Run all unit tests run: pnpm turbo test:unit env: - TURBO_CACHE_DIR: .turbo TURBO_TELEMETRY_DISABLED: 1 - name: Upload test coverage @@ -148,7 +148,6 @@ jobs: head -50 turbo.log || true env: SKIP_ENV_CHECK: true - TURBO_CACHE_DIR: .turbo TURBO_TELEMETRY_DISABLED: 1 # Pass all secrets from the testing environment DATABASE_URL: ${{ secrets.DATABASE_URL }}