Skip to content

Commit 1fa6722

Browse files
authored
feat(zint): introduce file tests (#161)
* feat(codegen): calldata load for the last selector * feat(zinkup): move zinkup to the top level * feat(cli): get back cli... * feat(crates): move zint to crates * feat(zink): move zink to the top level with examples * ci(main): build examples with target wasm32-unknown-unknown * chore(zink): sort packages * feat(zint): load wasm binary in contract * feat(zint): introduce storage tests with zint contract * feat(cli): make dispatcher as flags * feat(zinkc): introduce filetests * feat(filetests): move wat to filetests * feat(zink): move compiler tests to top level * feat(examples): apply zink::external * feat(filetests): ready to publish * chore(filetests): rename filetests to zinkc_filetests
1 parent 8dbf15f commit 1fa6722

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+1406
-938
lines changed

.cargo/config.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[alias]
2+
be = "build --examples --target wasm32-unknown-unknown --release"
3+
tt = "nextest run --release --all --no-fail-fast"
4+
cc = "clippy --all -- -D warnings"
5+
conta = "run --release -p conta"
6+
7+
[target.wasm32-unknown-unknown]
8+
rustflags = [
9+
"-C", "link-args=--import-memory",
10+
]

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
- uses: Swatinem/rust-cache@v2
2222
- uses: taiki-e/install-action@nextest
2323

24-
- name: Run Tests
25-
run: cargo nextest run --all-features --no-fail-fast
26-
2724
- name: Build Examples
28-
run: cd examples && cargo b --release
25+
run: cargo build --examples --target wasm32-unknown-unknown --release
26+
27+
- name: Run Tests
28+
run: cargo nextest run --all --no-fail-fast --release
2929

3030
check:
3131
name: Check
@@ -37,4 +37,4 @@ jobs:
3737
- name: Format
3838
run: cargo fmt --check
3939
- name: Clippy
40-
run: cargo clippy --all-features -- -D warnings
40+
run: cargo clippy --all -- -D warnings

Cargo.lock

Lines changed: 97 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)