From 99f46225c817c75b7fbfdd910716b81d01049c2d Mon Sep 17 00:00:00 2001 From: jbpenrath Date: Mon, 10 Jun 2024 10:26:29 +0200 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F(global)=20upgrade=20to=20tur?= =?UTF-8?q?bo=202.x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run `npx @turbo/codemod migrate` Then allow all env vars prefixed by "CIRCLE_" for the task "test-ci". Check turbo documention about Environment strict mode to understand why we need to do that. https://turbo.build/blog/turbo-2-0 --- turbo.json | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) diff --git a/turbo.json b/turbo.json index 1341f6c..efda130 100644 --- a/turbo.json +++ b/turbo.json @@ -1,31 +1,56 @@ { "$schema": "https://turbo.build/schema.json", - "pipeline": { + "tasks": { "build": { - "dependsOn": ["^build"], - "outputs": ["dist/**"] + "dependsOn": [ + "^build" + ], + "outputs": [ + "dist/**" + ] }, "lint": { "outputs": [] }, "dev": { "cache": false, - "dependsOn": ["^dev"] + "dependsOn": [ + "^dev" + ] }, "test": { "outputs": [], - "inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] + "inputs": [ + "src/**/*.tsx", + "src/**/*.ts", + "test/**/*.ts", + "test/**/*.tsx" + ] }, "test-ci": { + "env": [ + "CIRCLE_*" + ], "outputs": [], - "inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] + "inputs": [ + "src/**/*.tsx", + "src/**/*.ts", + "test/**/*.ts", + "test/**/*.tsx" + ] }, "deploy": { - "dependsOn": ["build", "test", "lint"], + "dependsOn": [ + "build", + "test", + "lint" + ], "outputs": [] }, "@openfun/cunningham-tokens#test": { - "dependsOn": ["build"] + "dependsOn": [ + "build" + ] } } }