Skip to content

Test CI

Test CI #13

Workflow file for this run

name: Build & Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- version: stable
- version: 1.63.0
steps:
- uses: actions/checkout@v3
- name: Update Toolchain
run: |
rustup default ${{ matrix.toolchain }}
rustup component add --toolchain ${{ matrix.toolchain }} rustfmt
rustup component add --toolchain ${{ matrix.toolchain }} clippy
rustup update ${{ matrix.toolchain }}
- name: Pin deps for MSRV
if: matrix.toolchain.version == '1.63.0'
run: |
cargo update -p tokio --precise "1.37.0"
- name: Lint all targets
run: cargo clippy
- name: Format
run: cargo fmt -- --check
- name: Build with defeault features
run: cargo build --verbose
- name: Check release build on Rust ${{ matrix.toolchain }}
run: cargo check --release --verbose --color always
- name: Test
run: cargo test --verbose