Skip to content

build(deps): bump rand from 0.10.1 to 0.10.2 #251

build(deps): bump rand from 0.10.1 to 0.10.2

build(deps): bump rand from 0.10.1 to 0.10.2 #251

Workflow file for this run

on:
pull_request:
paths:
- '.github/workflows/**'
- 'src/**'
- 'tests/**'
- 'Cargo.toml'
- 'Cargo.lock'
name: Check, Build and Test
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
format:
name: Rustfmt Check
runs-on: [ self-hosted ]
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install nightly toolchain
run: |
rustup toolchain install nightly --profile minimal
rustup component add rustfmt --toolchain nightly
- name: Run rustfmt
run: cargo +nightly fmt --all --check
clippy:
name: Clippy Check
runs-on: [ self-hosted ]
permissions:
contents: read
pull-requests: write
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Run cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
build:
name: Cargo Build
runs-on: [ self-hosted ]
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build with Cargo
run: cargo build --all-targets
test:
name: Run Tests
runs-on: [ self-hosted ]
env:
CARGO_TERM_COLOR: always
RUSTUP_TOOLCHAIN: stable
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- name: Run cargo test
run: git lfs pull && cargo test --all