generated from larry0x/cw-template
-
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.
Merge pull request #4 from InjectiveLabs/f/test-tube
feat: added test-tube tests
- Loading branch information
Showing
29 changed files
with
3,796 additions
and
1,143 deletions.
There are no files selected for viewing
File renamed without changes.
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,38 @@ | ||
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened] | ||
|
||
name: Test tube integration tests | ||
|
||
jobs: | ||
test: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: 1.78.0 | ||
target: wasm32-unknown-unknown | ||
override: true | ||
components: llvm-tools-preview | ||
|
||
- name: Compile WASM contracts | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --lib --target wasm32-unknown-unknown --locked --workspace --exclude testenv | ||
env: | ||
RUSTFLAGS: "-C link-arg=-s" | ||
|
||
- name: Run Integration Tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml | ||
|
||
on: | ||
push: | ||
pull_request: | ||
types: [opened] | ||
|
||
name: Unit tests + lints | ||
|
||
jobs: | ||
test: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: 1.78.0 | ||
target: wasm32-unknown-unknown | ||
override: true | ||
components: llvm-tools-preview | ||
|
||
- name: Compile WASM contracts | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --lib --target wasm32-unknown-unknown --locked --workspace --exclude testenv | ||
env: | ||
RUSTFLAGS: "-C link-arg=-s" | ||
|
||
- name: Run Integration Tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
|
||
lints: | ||
name: Lints | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Rust Toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: 1.78.0 | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
- name: Show Clippy version | ||
run: cargo clippy --version | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: --tests -- -D warnings |
Oops, something went wrong.