Skip to content

chore(release): Release 1.0.0-rc.1 (nearcore-1.38.0-rc.2) #162

chore(release): Release 1.0.0-rc.1 (nearcore-1.38.0-rc.2)

chore(release): Release 1.0.0-rc.1 (nearcore-1.38.0-rc.2) #162

Workflow file for this run

name: Rust checks
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check-format-and-lint:
name: Check & Lint
runs-on: ubuntu-22.04-8core
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
run: |
rustup update stable
rustup default stable
rustup component add rustfmt clippy
- name: Check code formatting
run: cargo fmt --all -- --check
- name: Lint with clippy
run: cargo clippy -- -D warnings
cargo-check:
name: Cargo Check
runs-on: ubuntu-22.04-8core
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
run: |
rustup update stable
rustup default stable
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cargo Check
run: cargo check --all