name: nightly
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: nightly on ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Lint the code
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Test all features
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features -- --nocapture