mirror of https://github.com/vacp2p/pmtree.git
chore: update workflow (add caching)
This commit is contained in:
parent
23f4a5eaf9
commit
5cf5251484
|
@ -3,28 +3,19 @@ name: Build-Test-Fmt
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-test-fmt:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: rustup toolchain install stable --profile minimal
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
|
||||
- name: Build
|
||||
run: cargo build
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run tests
|
||||
|
||||
- name: Test
|
||||
run: cargo test
|
||||
|
||||
fmt:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Run clippy
|
||||
run: cargo clippy
|
||||
- name: Run fmt check
|
||||
|
||||
- name: Fmt
|
||||
run: cargo fmt -- --check
|
||||
|
|
Loading…
Reference in New Issue