Merge pull request #467 from akargi/main6 you #497
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| rust: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| targets: wasm32v1-none | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Check code formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy linter | |
| run: cargo clippy --workspace --all-features -- -D warnings | |
| - name: Build WASM (release) | |
| run: cargo build --target wasm32v1-none --release | |
| - name: Run unit tests | |
| run: cargo test --workspace --lib | |
| - name: Run integration tests | |
| run: cargo test --workspace --test cross_chain_integration |