From a9febee8a786f29aed26f06265d6614c713f3297 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 23 Sep 2026 09:54:09 +0000 Subject: [PATCH] ci: build and test workspace on pull requests and pushes to main Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01NddcEhWQKEr5svxX3BcgFm --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a0af902 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + pull_request: + push: + branches: [main] + workflow_dispatch: + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: Test (${{ matrix.features }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + features: [default, all-features] + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + + - uses: Swatinem/rust-cache@v2 + with: + key: ${{ matrix.features }} + + - name: Build + run: cargo build --workspace --all-targets ${{ matrix.features == 'all-features' && '--all-features' || '' }} + + - name: Test + run: cargo test --workspace ${{ matrix.features == 'all-features' && '--all-features' || '' }}