Skip to content

CI: build and test on PRs #1

CI: build and test on PRs

CI: build and test on PRs #1

Workflow file for this run

name: Build and Test
on:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
rust:
name: cargo build and test
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Build
run: cargo build --locked --all-targets
- name: Test
run: cargo test --locked --all-features --no-fail-fast