diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9c410a0..23f5ccf 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,20 +2,22 @@ name: Rust on: push: - branches: [ "main" ] + branches: + - "main" pull_request: - branches: [ "main" ] + branches: + - "main" env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - name: Set up cargo cache uses: actions/cache@v3 continue-on-error: false @@ -28,7 +30,9 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: ${{ runner.os }}-cargo- + - name: Build run: cargo build --verbose + - name: Run tests run: cargo test --verbose