From 1a433b5033b0ae6eb6aa84e53e5e589a9f52bb15 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Fri, 9 Feb 2024 00:19:09 +0800 Subject: [PATCH] ci: use new test option for seeding --- .github/workflows/main.yml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 40378b6ca..a0af63a96 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -140,15 +140,7 @@ jobs: working-directory: ./alteration run: | cd packages/cli - pnpm start db seed - env: - DB_URL: postgres://postgres:postgres@localhost:5432/alteration - - # FIXME: Last version of CLI doesn't support test data seeding. Here's a temporary workaround. - # We will remove this step when a new version of CLI is released. - - name: Setup alteration database test data - working-directory: ./fresh - run: pnpm cli db seed --legacy-test-data + pnpm start db seed --test env: DB_URL: postgres://postgres:postgres@localhost:5432/alteration @@ -169,15 +161,7 @@ jobs: working-directory: ./alteration run: | cd packages/cli - pnpm start db seed - env: - DB_URL: postgres://postgres:postgres@localhost:5432/old - - # FIXME: Last version of CLI doesn't support test data seeding. Here's a temporary workaround. - # We will remove this step when a new version of CLI is released. - - name: Setup old database test data - working-directory: ./fresh - run: pnpm cli db seed --legacy-test-data + pnpm start db seed --test env: DB_URL: postgres://postgres:postgres@localhost:5432/old