From 731bff329393ee5f6801838978976b11cc632d81 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 6 Dec 2023 23:31:05 +0900 Subject: [PATCH] wip --- .github/workflows/cli.test.yaml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cli.test.yaml b/.github/workflows/cli.test.yaml index 65272a175..05c4c6558 100644 --- a/.github/workflows/cli.test.yaml +++ b/.github/workflows/cli.test.yaml @@ -35,29 +35,25 @@ jobs: - name: Install dependencies run: yarn install - - name: Api db migrate - run: yarn api prisma-migrate dev --name init - env: - DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/delegator?schema=public" - - - name: Delegator db migrate - run: yarn delegator prisma-migrate dev --name init + - name: Delegator build & db migrate + run: yarn delegator build && yarn delegator prisma-migrate dev --name init-delegator env: DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/orakl?schema=public" + - name: Api build & db migrate + run: yarn api build && yarn api prisma-migrate dev --name init-api + env: + DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/delegator?schema=public" + - name: Run delegator - run: | - yarn delegator build - yarn delegator start & + run: yarn delegator start & env: DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/delegator?schema=public" PROVIDER_URL: "https://api.baobab.klaytn.net:8651" APP_PORT: "3002" - name: Run api - run: | - yarn api build - yarn api start & + run: yarn api start & env: DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/orakl?schema=public" ENCRYPT_PASSWORD: "abc123"