Skip to content

Test CI

Test CI #15

Workflow file for this run

name: Build & Test
on: [push, pull_request]
# on:
# push:
# branches:
# - master
# pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- toolchain: stable
- toolchain: 1.63.0
steps:
- name: checkout
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust.toolchain }}
components: clippy, rustfmt
- name: Pin deps for MSRV
if: matrix.rust.toolchain == '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.rust.toolchain }}
run: cargo check --release --verbose --color always
- name: Test
run: cargo test --verbose