Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
pull_request:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable

- name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libcups2-dev
Comment on lines +21 to +25
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Provision a CUPS destination before running the Linux tests

In the ubuntu-latest job this only installs libcups2-dev; it never starts cupsd or creates a printer. Every integration test in tests/integration_tests.rs is gated by cups_available(), which returns immediately unless get_all_destinations() can talk to a real destination, so the Linux leg will go green while the printer/job integration coverage is skipped entirely. That means CI will miss regressions in the core CUPS workflows this crate wraps.

Useful? React with 👍 / 👎.


- name: Build
run: cargo build

- name: Test
run: cargo test