Skip to content

Merge pull request #1 from JmPotato/fix_the_rand_dependency #8

Merge pull request #1 from JmPotato/fix_the_rand_dependency

Merge pull request #1 from JmPotato/fix_the_rand_dependency #8

Workflow file for this run

name: Rust
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
fail-fast: true
matrix:
rustup:
- toolchain: stable
components: "clippy, rustfmt"
- toolchain: nightly
components: ""
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
name: Install Rust
with:
toolchain: ${{ matrix.rustup.toolchain }}
profile: minimal
components: ${{ matrix.rustup.components }}
default: true
- name: Clippy
run: cargo clippy
if: contains(matrix.rustup.components, 'clippy')
- name: Format
run: cargo fmt -- --check
if: contains(matrix.rustup.components, 'rustfmt')
- name: Test
run: cargo test