chore: update workflow (add caching)

This commit is contained in:
Magamedrasul Ibragimov 2022-12-05 14:17:52 +03:00 committed by GitHub
parent 23f4a5eaf9
commit 5cf5251484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 17 deletions

View File

@ -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