Skip to content

Commit

Permalink
feat: make ic-repl work against PocketIC (#99)
Browse files Browse the repository at this point in the history
* feat: make ic-repl work against PocketIC

* lazy

* dfx stop

* clean

* use fn get_default_effective_canister_id

* simplify deps

* bump dfx

* dfx version

* Revert "dfx version"

This reverts commit ab157dd.

* deps

* dfx

* avoid pocket-ic crate (#101)

* avoid pocket-ic crate

* .

* trim_end_matches
  • Loading branch information
mraszyk authored Nov 18, 2024
1 parent 77a527e commit 61e3207
Show file tree
Hide file tree
Showing 6 changed files with 412 additions and 14 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
test:
runs-on: ubuntu-latest
env:
DFX_VERSION: 0.24.0
DFX_VERSION: 0.24.2
steps:
- uses: actions/checkout@v4
- name: Install stable Rust toolchain
Expand Down Expand Up @@ -38,12 +38,19 @@ jobs:
uses: dfinity/setup-dfx@main
with:
dfx-version: "${{ env.DFX_VERSION }}"
- name: Start replica using dfx
- name: Run e2e tests against replica
run: |
echo '{}' > dfx.json
dfx start --background
- name: e2e tests
dfx start --background --clean
set -ex
target/debug/ic-repl examples/install.sh
target/debug/ic-repl examples/func.sh
dfx stop
- name: Run e2e tests against PocketIC
run: |
echo '{}' > dfx.json
dfx start --background --clean --pocketic
set -ex
target/debug/ic-repl examples/install.sh
target/debug/ic-repl examples/func.sh
dfx stop
Loading

0 comments on commit 61e3207

Please sign in to comment.