Files
Stefan ArentzandClaude 7e8bdb8e38 ci: skip workflow for docs-only and other non-code changes (#261)
Add paths-ignore to the push and pull_request triggers so the Rust
checks (fmt, clippy, test) don't run when a change only touches
documentation or other non-code files:

  - **/*.md      (README, notes/*.md)
  - notes/**      (documentation notes directory)
  - screenshots/**(README images)
  - .gitignore

CI still runs whenever a change touches any code alongside these
files, since paths-ignore only skips when *all* changed paths match.


Claude-Session: https://claude.ai/code/session_01VAnQYAG1XxEz6XN3KJSi6V

Co-authored-by: Claude <noreply@anthropic.com>
2026-07-13 23:10:49 -04:00

36 lines
768 B
YAML

name: CI
on:
push:
branches: [main]
paths-ignore:
- '**/*.md'
- 'notes/**'
- 'screenshots/**'
- '.gitignore'
pull_request:
paths-ignore:
- '**/*.md'
- 'notes/**'
- 'screenshots/**'
- '.gitignore'
jobs:
rust:
name: Rust checks
# 26.04 because it is the first LTS whose libsdl3-dev is new enough.
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v4
- name: Install SDL3
run: |
sudo apt-get update
sudo apt-get install -y libsdl3-dev
- uses: Swatinem/rust-cache@v2
- name: Format
run: cargo fmt --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test