Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring basic integration tests #4

Merged
merged 7 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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