Add coinbase merkle proof validation in verify transaction inclusion … #594
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: Rust | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| permissions: | |
| checks: write | |
| jobs: | |
| contract: | |
| name: "Smart contract checks" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: 1.86.0 | |
| components: clippy, rustfmt | |
| target: wasm32-unknown-unknown | |
| - name: Checkout sources | |
| uses: actions/checkout@v2 | |
| - name: Install cargo-near | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/cargo-near/releases/latest/download/cargo-near-installer.sh | sh | |
| - name: Run rustfmt | |
| run: make fmt | |
| - name: Run clippy | |
| run: make clippy | |
| - name: Run tests | |
| run: make test | |
| relayer: | |
| name: "Relayer checks" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./relayer | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v2 | |
| - name: Run rustfmt | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: fmt | |
| args: --manifest-path ./relayer/Cargo.toml --all -- --check | |
| - name: Run clippy | |
| uses: actions-rs/clippy-check@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| args: --manifest-path ./relayer/Cargo.toml --all-targets -- -D warnings -D clippy::pedantic -D clippy::as_conversions | |
| - name: Run tests | |
| run: | | |
| RUST_BACKTRACE=1 cargo test |