diff --git a/.env.example b/.env.example index d78038e5..61167deb 100644 --- a/.env.example +++ b/.env.example @@ -2,4 +2,5 @@ E2E_PRIVATE_KEY_ONE= CHAIN_ID=84532 RPC_URL= BUNDLER_URL= -BICONOMY_SDK_DEBUG=false \ No newline at end of file +BICONOMY_SDK_DEBUG=false +RUN_PLAYGROUND=false \ No newline at end of file diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 32dd2815..e70533ca 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -23,6 +23,8 @@ jobs: run: bun run test env: E2E_PRIVATE_KEY_ONE: ${{ secrets.E2E_PRIVATE_KEY_ONE }} + BUNDLER_URL: https://api.pimlico.io/v2/84532/rpc?apikey=pim_im13GpaqtMDSiJFhXMxcVn + CHAIN_ID: 84532 - name: report coverage uses: davelosert/vitest-coverage-report-action@v2 diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml new file mode 100644 index 00000000..a4aad9be --- /dev/null +++ b/.github/workflows/playground.yml @@ -0,0 +1,28 @@ +name: playground +on: + workflow_dispatch: + pull_request: + types: [opened, reopened, synchronize, ready_for_review] +jobs: + playground: + name: playground + permissions: write-all + runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-playground + cancel-in-progress: true + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install dependencies + uses: ./.github/actions/install-dependencies + + - name: Run the account tests + run: RUN_PLAYGROUND=true bun run test:ci -t=Playground + env: + E2E_PRIVATE_KEY_ONE: ${{ secrets.E2E_PRIVATE_KEY_ONE }} + BUNDLER_URL: https://api.pimlico.io/v2/84532/rpc?apikey=pim_im13GpaqtMDSiJFhXMxcVn + CHAIN_ID: 84532 diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 3ae2818c..afcacfad 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -24,3 +24,5 @@ jobs: run: bun run test:ci env: E2E_PRIVATE_KEY_ONE: ${{ secrets.E2E_PRIVATE_KEY_ONE }} + BUNDLER_URL: https://api.pimlico.io/v2/84532/rpc?apikey=pim_im13GpaqtMDSiJFhXMxcVn + CHAIN_ID: 84532 diff --git a/tests/instances/playground.test.ts b/tests/instances/playground.test.ts index 26393e30..504658ae 100644 --- a/tests/instances/playground.test.ts +++ b/tests/instances/playground.test.ts @@ -143,6 +143,8 @@ conditionalDescribe("playground", () => { address: ownerAddress }) + console.log({ transactionHash }) + expect(balanceAfter - balanceBefore).toBe(1n) }) })