Update test.yml

This commit is contained in:
Timothy Chandler 2023-09-15 14:14:13 -05:00 committed by GitHub
parent a0c2023b1b
commit 99adc72e8e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,15 +14,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- name: Format
run: cargo fmt --all --check
@ -44,7 +35,29 @@ jobs:
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: ~/.cargo
path: |
~/.cargo
target
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Run tests
run: cargo build
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- name: Cache Rust dependencies
uses: actions/cache@v3
with:
path: |
~/.cargo
target
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-