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]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-test-fmt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- run: rustup toolchain install stable --profile minimal
|
||||||
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build
|
run: cargo build
|
||||||
|
|
||||||
test:
|
- name: Test
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Run tests
|
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
||||||
fmt:
|
- name: Fmt
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Run clippy
|
|
||||||
run: cargo clippy
|
|
||||||
- name: Run fmt check
|
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
|
|
Loading…
Reference in New Issue