Skip to content

feat: Switch from SHA3-256 to BLAKE3-256 (#32) #87

feat: Switch from SHA3-256 to BLAKE3-256 (#32)

feat: Switch from SHA3-256 to BLAKE3-256 (#32) #87

Workflow file for this run

name: 🧪 Tests and Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
jobs:
rust-checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
- nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v3
# Smarter caching action, speeds up build times compared to regular cache:
# https://github.com/Swatinem/rust-cache
- name: Cache Project
uses: Swatinem/rust-cache@v2
# Widely adopted suite of Rust-specific boilerplate actions, especially
# toolchain/cargo use: https://actions-rs.github.io/
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
override: true
components: rustfmt, clippy
toolchain: ${{ matrix.rust-toolchain }}
- name: Check Format
uses: actions-rs/cargo@v1
with:
args: -- --check
command: fmt
toolchain: ${{ matrix.rust-toolchain }}
- name: Run Linter
uses: actions-rs/cargo@v1
with:
args: -- -D warnings
command: clippy
toolchain: ${{ matrix.rust-toolchain }}
- name: Install Cargo Audit
uses: "actions-rs/cargo@v1"
with:
args: "--force cargo-audit"
command: install
- name: Run Audit on Deps
run: cargo-audit audit
# Only "test" release build on push event.
- name: Test Release
if: github.event_name == 'push'
run: cargo build --release
rust-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
- nightly
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Cache Project
uses: Swatinem/rust-cache@v2
- name: Run Tests
run: cargo test