diff --git a/.github/workflows/turbo-ci.yml b/.github/workflows/turbo-ci.yml index a5fb02699..02607a96a 100644 --- a/.github/workflows/turbo-ci.yml +++ b/.github/workflows/turbo-ci.yml @@ -75,3 +75,6 @@ jobs: - name: Test run: pnpm test + env: + SQLX_OFFLINE: true + DATABASE_URL: postgresql://labrinth:labrinth@localhost/postgres diff --git a/turbo.json b/turbo.json index e9981fdb1..73dd66fc0 100644 --- a/turbo.json +++ b/turbo.json @@ -19,14 +19,23 @@ "SQLX_OFFLINE" ] }, - "lint": {}, + "lint": { + "env": [ + "SQLX_OFFLINE" + ] + }, "dev": { "cache": false, "persistent": true, "inputs": ["$TURBO_DEFAULT$", ".env*"], "env": ["DISPLAY", "WEBKIT_DISABLE_DMABUF_RENDERER"] }, - "test": {}, + "test": { + "env": [ + "SQLX_OFFLINE", + "DATABASE_URL" + ] + }, "fix": { "cache": false }