Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use pocket-ic in e2e-tests #495

Merged
merged 15 commits into from
May 28, 2024
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:

test:
name: cargo test
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-12]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -57,11 +60,12 @@ jobs:
restore-keys: |
${{ runner.os }}-test-
${{ runner.os }}-
- name: Download ic-test-state-machine
- name: Download pocket-ic
run: |
bash scripts/download_state_machine_binary.sh
bash scripts/download_pocket_ic.sh
- name: Run tests
run: | # https://github.com/rust-lang/cargo/issues/6669 we have to run ALL tests with two commands
run:
| # https://github.com/rust-lang/cargo/issues/6669 we have to run ALL tests with two commands
cargo test --all-targets
cargo test --doc

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ examples/*/Cargo.lock
**/*.rs.bk
.DS_Store

ic-test-state-machine
e2e-tests/pocket-ic

# Generated bindings
**/declarations/
Loading