This repository has been archived by the owner on Jul 30, 2023. It is now read-only.
fix(deps): update all non-major dependencies #71
This file contains 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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: Unit Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
name: | |
- Stable | |
- Beta | |
- Nightly | |
- MacOS | |
- Windows | |
include: | |
- name: Stable | |
toolchain: stable | |
os: ubuntu-latest | |
- name: Beta | |
toolchain: beta | |
os: ubuntu-latest | |
- name: Nightly | |
toolchain: nightly | |
os: ubuntu-latest | |
- name: MacOS | |
toolchain: stable | |
os: macOS-latest | |
- name: Windows | |
toolchain: stable | |
os: windows-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v1 | |
- name: Install Nextest | |
uses: taiki-e/install-action@nextest | |
- name: Run Tests | |
run: cargo nextest run | |
freebsd-test: | |
name: Unit Tests (FreeBSD) | |
runs-on: macos-10.15 | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | |
- name: Run Tests | |
uses: vmactions/freebsd-vm@dcbf6bacfcec5f990d6a6b3aab51beb0171b7354 # v0.3.0 | |
env: | |
RUSTUP_HOME: /usr/local/rustup | |
CARGO_HOME: /usr/local/cargo | |
RUSTUP_IO_THREADS: 1 | |
with: | |
envs: RUSTUP_HOME CARGO_HOME RUSTUP_IO_THREADS | |
usesh: true | |
mem: 3000 | |
prepare: | | |
pkg install -y curl python2 | |
curl https://sh.rustup.rs -sSf --output rustup.sh | |
sh rustup.sh -y --profile minimal --default-toolchain stable | |
setenv PATH "/usr/local/cargo/bin:$PATH" | |
rustc --version | |
run: | | |
export PATH="/usr/local/cargo/bin:$PATH" | |
cargo test | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v1 | |
- name: Install rustfmt | |
run: rustup component add rustfmt | |
- name: Run rustfmt | |
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # tag=v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the Repository | |
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # tag=v1 | |
with: | |
profile: minimal | |
toolchain: nightly | |
override: true | |
- name: Cache dependencies | |
uses: Swatinem/rust-cache@v1 | |
- name: Install clippy | |
run: rustup component add clippy | |
- name: Run clippy | |
run: cargo clippy -- -D warnings |