diff --git a/.github/workflows/build-test-fmt.yml b/.github/workflows/build-test-fmt.yml index d33bb43..c6072d6 100644 --- a/.github/workflows/build-test-fmt.yml +++ b/.github/workflows/build-test-fmt.yml @@ -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