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