From 770b29e7673a07e3812529b7f4028c81c59ea847 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 13 Feb 2023 07:11:16 +0100 Subject: [PATCH] :green_heart: Fix clean database script --- .github/workflows/clean-database.yml | 3 +-- turbo.json | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/clean-database.yml b/.github/workflows/clean-database.yml index a722a0db0f..2ddbb96959 100644 --- a/.github/workflows/clean-database.yml +++ b/.github/workflows/clean-database.yml @@ -16,5 +16,4 @@ jobs: - uses: actions/checkout@v2 - uses: pnpm/action-setup@v2.2.2 - run: pnpm i --frozen-lockfile - - run: cd ../db && pnpm db:generate && cd ../scripts - - run: pnpm db:cleanDatabase + - run: pnpm turbo run db:cleanDatabase diff --git a/turbo.json b/turbo.json index 6b6f8509b3..72e216c89d 100644 --- a/turbo.json +++ b/turbo.json @@ -35,6 +35,10 @@ }, "db:push": { "cache": false + }, + "db:cleanDatabase": { + "dependsOn": ["db#db:generate"], + "cache": false } } }