Skip to content

0.2.5-dev

0.2.5-dev #16

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
branches:
- "**"
jobs:
test:
name: Test
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.rust == 'nightly' }}
strategy:
matrix:
rust: [stable, nightly]
steps:
- name: Checkout the source code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Build without default features
run: cargo build --no-default-features
- name: Build with all features
run: cargo build --all-features
- name: Execute all tests
run: cargo test --all
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt
- name: Check formatting of all crates in the workspace
run: cargo fmt --all -- --check