Skip to content

Commit

Permalink
Merge pull request #2 from ilbertt/tests
Browse files Browse the repository at this point in the history
ic_backend integration tests
  • Loading branch information
ilbertt authored Apr 12, 2024
2 parents 43bd8d1 + 853af0f commit f569f30
Show file tree
Hide file tree
Showing 30 changed files with 3,696 additions and 512 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ic-backend-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ic_backend tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
shell: bash
run: rustup show

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
shared-key: "unit-tests"

- name: Run unit tests
run: ./scripts/unit-test.sh

integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
shell: bash
run: rustup show

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: "true"
shared-key: "build-wasm"

- name: Install dfx
uses: dfinity/setup-dfx@main
with:
dfx-version: "latest"

- name: Run integration tests
run: ./scripts/integration-test.sh
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ yarn-error.*
target/

data/

pocket-ic
Loading

0 comments on commit f569f30

Please sign in to comment.