-
Notifications
You must be signed in to change notification settings - Fork 2
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
3d8f29c
commit ff48f7b
Showing
19 changed files
with
1,354 additions
and
1,095 deletions.
There are no files selected for viewing
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,35 @@ | ||
name: Artifacts | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
artifacts: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install cargo make | ||
uses: davidB/rust-cargo-make@v1 | ||
|
||
- name: Compile contracts to wasm | ||
run: cargo make rust-optimizer | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: artifacts | ||
path: artifacts/ |
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 |
---|---|---|
@@ -1,40 +1,33 @@ | ||
name: Test coverage | ||
name: Coverage | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_TERM_COLOR: always | ||
RUSTFLAGS: -D warnings | ||
|
||
jobs: | ||
coverage: | ||
name: Check unit test coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install nightly toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
target: wasm32-unknown-unknown | ||
override: true | ||
- name: Install cargo make | ||
uses: davidB/rust-cargo-make@v1 | ||
|
||
- name: Install tarpaulin | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
toolchain: nightly | ||
command: install | ||
args: cargo-tarpaulin --version 0.20.1 | ||
- name: Install stable Rust | ||
run: cargo make install-stable | ||
|
||
- name: Run test coverage | ||
run: cargo make coverage-lcov | ||
|
||
- name: Run code coverage check with tarpaulin | ||
uses: actions-rs/cargo@v1 | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
toolchain: nightly | ||
command: tarpaulin | ||
args: --lib --workspace --timeout 120 | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: target/coverage/lcov.info |
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
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,31 @@ | ||
name: Test Suite | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
RUSTFLAGS: -D warnings | ||
|
||
jobs: | ||
test: | ||
name: Test Suite | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install cargo make | ||
uses: davidB/rust-cargo-make@v1 | ||
|
||
- name: Install stable toolchain | ||
run: cargo make install-stable | ||
|
||
- name: Run unit tests | ||
run: cargo make unit-test | ||
env: | ||
RUST_BACKTRACE: 1 | ||
|
||
- name: Run integration tests | ||
run: cargo make integration-test | ||
env: | ||
RUST_BACKTRACE: 1 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.