Skip to content

feat: gas hook on ExecutionFinalResult #561

feat: gas hook on ExecutionFinalResult

feat: gas hook on ExecutionFinalResult #561

Workflow file for this run

name: Workspace Checks & Tests
on:
push:
branches: [ main ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Clippy and fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: Check Formatting
run: cargo fmt -- --check
- name: Check Clippy
run: cargo clippy --tests -- -Dclippy::all
test:
needs: check
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
# TODO: Bring `stable` back to the matrix once Rust 1.70.0+ compatibility is resolved in nearcore:
# https://github.com/near/nearcore/issues/9143
toolchain: [1.69.0]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: "${{ matrix.toolchain }}"
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
default: true
- uses: Swatinem/rust-cache@v1
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Check with stable features
run: cargo check --verbose
- name: Run tests with unstable features
run: NEAR_RPC_TIMEOUT_SECS=100 cargo test --verbose --features unstable