Skip to content

Merge pull request #57 from AlexTMjugador/master #81

Merge pull request #57 from AlexTMjugador/master

Merge pull request #57 from AlexTMjugador/master #81

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
matrix:
rust:
- rust: stable
command: test
args: ""
- rust: 1.48.0
command: check
args: "--locked"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust.rust }}
override: true
- run: mv Cargo.lock.msrv Cargo.lock
if: ${{ matrix.rust.rust}} == 1.48.0
- uses: actions-rs/cargo@v1
with:
command: ${{ matrix.rust.command }}
args: ${{ matrix.rust.args }}
fmt-clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/[email protected]
with:
args: '--ignore-tests'
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: bench