-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Simple unit tests + e2e setup * Use substrate-contract-node * Move e2e out of a contract * A few more send_request test cases * Better error checking * Add github pipeline for ink tests * Faster ink test pipeline * Change workflow labels * Add docker-compose installation step * Fix malformed workflow file * Test * Bootstrap before running contracts node * Some tests for receive_request * Use psp22 from crates * Make set_owner a message + set initial caller in unit tests * Remove leftover make instruction + rename call methods in ink_e2e tests * More explicit variable naming * Turns some frequently used values into consts * ink_e2e tests: add generic funtion for message calling * Split adding pair test into two + more values as consts * Asserts only on things we test + change test return types * Make depoyments depend on success of test workflow * Membrane constructor returns a Result * Check if pair is supported before transferring tokens * is_guardian message * Change is_guardian description and return type * Comment change
- Loading branch information
1 parent
8888a3f
commit f367c61
Showing
20 changed files
with
6,539 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Runs a local ethereum network and tests contracts. | ||
|
||
name: Ink! tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
name: Test ink! contracts | ||
runs-on: [self-hosted, Linux, X64, large] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install Rust toolchain" | ||
uses: Cardinal-Cryptography/aleph-node/.github/actions/install-rust-toolchain@5eda3cd85e7e3aec3f2db7a26631c65d52c4b9ea | ||
|
||
- name: "Install Docker Compose" | ||
uses: KengoTODA/actions-setup-docker-compose@v1 | ||
with: | ||
version: '1.29.2' | ||
|
||
- name: "Check Docker Compose version" | ||
run: docker-compose --version | ||
|
||
- name: Run tests | ||
shell: bash | ||
run: make test-ink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.