diff --git a/.woodpecker/.ci.yml b/.woodpecker/.ci.yml index 660f6b22..1d23337a 100644 --- a/.woodpecker/.ci.yml +++ b/.woodpecker/.ci.yml @@ -1,56 +1,46 @@ when: - event: [push, pull_request] -# Volume mounts for caching npm and TypeScript across builds -variables: - - &node_volumes - - npm-cache:/root/.npm - - tsc-cache:/tmp/tsc-cache - steps: # =========================================== # PR VALIDATION: Parallel type checks (PRs only) # =========================================== typecheck-backend: image: code.cannabrands.app/creationshop/node:20 - volumes: *node_volumes commands: - cd backend - - npm ci --prefer-offline --cache /root/.npm - - npx tsc --incremental --tsBuildInfoFile /tmp/tsc-cache/backend.tsbuildinfo --noEmit + - npm ci --prefer-offline + - npx tsc --noEmit depends_on: [] when: event: pull_request typecheck-cannaiq: image: code.cannabrands.app/creationshop/node:20 - volumes: *node_volumes commands: - cd cannaiq - - npm ci --prefer-offline --cache /root/.npm - - npx tsc --incremental --tsBuildInfoFile /tmp/tsc-cache/cannaiq.tsbuildinfo --noEmit + - npm ci --prefer-offline + - npx tsc --noEmit depends_on: [] when: event: pull_request typecheck-findadispo: image: code.cannabrands.app/creationshop/node:20 - volumes: *node_volumes commands: - cd findadispo/frontend - - npm ci --prefer-offline --cache /root/.npm - - npx tsc --incremental --tsBuildInfoFile /tmp/tsc-cache/findadispo.tsbuildinfo --noEmit 2>/dev/null || true + - npm ci --prefer-offline + - npx tsc --noEmit 2>/dev/null || true depends_on: [] when: event: pull_request typecheck-findagram: image: code.cannabrands.app/creationshop/node:20 - volumes: *node_volumes commands: - cd findagram/frontend - - npm ci --prefer-offline --cache /root/.npm - - npx tsc --incremental --tsBuildInfoFile /tmp/tsc-cache/findagram.tsbuildinfo --noEmit 2>/dev/null || true + - npm ci --prefer-offline + - npx tsc --noEmit 2>/dev/null || true depends_on: [] when: event: pull_request