diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c930d46..ff1ee94 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -118,6 +118,35 @@ jobs: run: cargo test --verbose continue-on-error: true + test-macos: + name: Test on macOS + runs-on: macos-latest + needs: [format, clippy] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo-test- + ${{ runner.os }}-cargo- + + - name: Build + run: cargo build --verbose + + - name: Run tests + run: cargo test --verbose + security: name: Security Audit runs-on: ubuntu-latest