Update and rename rust.yml to test.yml

This commit is contained in:
Lucio Franco
2019-09-03 17:06:33 -04:00
committed by GitHub
parent 5b60b7c10f
commit 3034e5c02d
+25
View File
@@ -0,0 +1,25 @@
name: test
on: [push]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [nightly]
steps:
- uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Install rustfmt
run: rustup component add rustfmt
- name: Run fmt
run: cargo fmt -- --check
- name: Run check
run: cargo check --all
- name: Run check with no default features
run: cargo check --all --no-default-features
- name: Run tests
run: cargo test --all