Release the contract 0.4.0
#9
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
name: Pull Request Checks | |
on: | |
pull_request: | |
jobs: | |
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 |