Update build.yml

Original commit: 33506baf77
This commit is contained in:
Wojciech Daniło 2019-10-07 17:01:11 +02:00 committed by GitHub
parent ad547bf4b0
commit c49fa8371d

View File

@ -4,6 +4,7 @@ on: [push]
jobs:
build:
name: Build Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
@ -20,7 +21,51 @@ jobs:
with:
command: check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
fmt:
name: Code Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Code Linting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
coverage:
name: Code Coverage Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1