github actions: cargo check

This commit is contained in:
Carter Anderson 2020-06-08 01:05:56 -07:00
parent 8fbbbba674
commit 91edc6fa2b

View file

@ -14,6 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/cache@v2
with:
path: |
@ -21,12 +25,8 @@ jobs:
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build
run: cargo build --verbose
run: cargo check
- name: Run tests
run: cargo test --verbose --workspace
run: cargo test --workspace