diff --git a/.github/workflows/cli.test.yaml b/.github/workflows/cli.test.yaml index d45d06fd5..ccff07312 100644 --- a/.github/workflows/cli.test.yaml +++ b/.github/workflows/cli.test.yaml @@ -4,8 +4,6 @@ on: push: branches-ignore: - "master" - paths: - - "cli/**" workflow_dispatch: jobs: @@ -53,6 +51,8 @@ jobs: DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/delegator?schema=public" PROVIDER_URL: "https://api.baobab.klaytn.net:8651" APP_PORT: "3002" + DELEGATOR_FEEPAYER_PK: ${{ secrets.DELEGATOR_FEEPAYER_PK}} + TEST_DELEGATOR_REPORTER_PK: ${{ secrets.TEST_DELEGATOR_REPORTER_PK}} - name: Run api run: yarn api build && yarn api start & diff --git a/cli/test/delegator.ts b/cli/test/delegator.ts index 98e9da836..6bee184a3 100644 --- a/cli/test/delegator.ts +++ b/cli/test/delegator.ts @@ -8,7 +8,8 @@ import { organizationInsertHandler, organizationRemoveHandler, reporterInsertHandler, - reporterRemoveHandler + reporterRemoveHandler, + signHandler } from '../src/delegator' const unsignedTx = { @@ -63,9 +64,9 @@ describe('CLI Delegator', function () { }) // Sign Transaction - // const signedTx = await signHandler()({ txData: unsignedTx }) - // expect(signedTx.succeed).toBe(true) - // console.log(signedTx) + const signedTx = await signHandler()({ txData: unsignedTx }) + expect(signedTx.succeed).toBe(true) + console.log(signedTx) await functionRemoveHandler()({ id: functions.id }) await contractRemoveHandler()({ id: contract.id })