Skip to content

Commit

Permalink
chore: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
joepegler committed Aug 23, 2024
1 parent 567f5fa commit c5c087f
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ E2E_PRIVATE_KEY_ONE=
CHAIN_ID=84532
RPC_URL=
BUNDLER_URL=
BICONOMY_SDK_DEBUG=false
BICONOMY_SDK_DEBUG=false
RUN_PLAYGROUND=false
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 2 additions & 0 deletions tests/instances/playground.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ conditionalDescribe("playground", () => {
address: ownerAddress
})

console.log({ transactionHash })

expect(balanceAfter - balanceBefore).toBe(1n)
})
})

0 comments on commit c5c087f

Please sign in to comment.