Skip to content

Commit

Permalink
Bring basic integration tests (#4)
Browse files Browse the repository at this point in the history
* feat: bring integration tests for `get signatures on multiple chains` use case

* ci: remove unexpected argument inside build command

* ci: run cargo test & cargo clippy in parallel

* ci: display rustc version during PR checks

* ci: bump cargo-near to 0.8.1

* chore: leave a comment in workflow

* fix: use .expect() instead of env::panic_str()
  • Loading branch information
denbite authored Sep 27, 2024
1 parent ee21945 commit 9ab0674
Show file tree
Hide file tree
Showing 7 changed files with 5,038 additions and 936 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,40 @@
name: Pull Request Test
name: Pull Request Checks

on:
pull_request:

jobs:
checks:
tests:
runs-on: ubuntu-latest
name: Check Formatting & Tests
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Check Formatting
run: cargo fmt --check

- name: Install cargo-near CLI
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/download/cargo-near-v0.8.1/cargo-near-installer.sh | sh

- name: Rustc version
run: rustc -V

# mandatory for e2e tests
- name: Build release version of contract
run: cargo near build --no-abi --no-docker

- name: Run cargo test
run: cargo test

clippy:
runs-on: ubuntu-latest
name: Runs Cargo Clippy
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run cargo clippy
run: |
rustup component add clippy
cargo clippy --all-features --workspace --tests -- --warn clippy::all --warn clippy::nursery
- name: Run cargo test
run: cargo test
Loading

0 comments on commit 9ab0674

Please sign in to comment.