-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57e9c3e
commit ef6c3d9
Showing
27 changed files
with
8,883 additions
and
253 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Run contracts tests | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTFLAGS: "-C debug-assertions=y" | ||
RUST_BACKTRACE: 1 | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Install Rust toolchain | ||
run: | | ||
rustup set profile minimal | ||
rustup update --no-self-update 1.78.0 | ||
rustup component add --toolchain 1.78.0 rustfmt rust-src | ||
rustup target add wasm32-unknown-unknown | ||
rustup default 1.78.0 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-all-crates: "true" | ||
workspaces: "contracts -> contracts/target" | ||
|
||
- name: Run tests | ||
working-directory: contracts | ||
run: cargo test |
Oops, something went wrong.