Skip to content

Commit

Permalink
feat(zint): introduce file tests (#161)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
clearloop authored Oct 26, 2023
1 parent 8dbf15f commit 1fa6722
Show file tree
Hide file tree
Showing 113 changed files with 1,406 additions and 938 deletions.
10 changes: 10 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[alias]
be = "build --examples --target wasm32-unknown-unknown --release"
tt = "nextest run --release --all --no-fail-fast"
cc = "clippy --all -- -D warnings"
conta = "run --release -p conta"

[target.wasm32-unknown-unknown]
rustflags = [
"-C", "link-args=--import-memory",
]
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@nextest

- name: Run Tests
run: cargo nextest run --all-features --no-fail-fast

- name: Build Examples
run: cd examples && cargo b --release
run: cargo build --examples --target wasm32-unknown-unknown --release

- name: Run Tests
run: cargo nextest run --all --no-fail-fast --release

check:
name: Check
Expand All @@ -37,4 +37,4 @@ jobs:
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-features -- -D warnings
run: cargo clippy --all -- -D warnings
133 changes: 97 additions & 36 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1fa6722

Please sign in to comment.