Skip to content

Commit

Permalink
Specify paths for treefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Oct 18, 2024
1 parent df42760 commit 8a193c0
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 28 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-attiny85.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@ name: Build ATtiny85
pull_request:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/build-attiny85.yaml
- .justfile
- flake.lock
- flake.nix
- boards/attiny85/.cargo/**
- boards/attiny85/avr-unknown-none-attiny85.json
- boards/attiny85/Cargo.lock
- boards/attiny85/Cargo.toml
- boards/attiny85/default.nix
- boards/attiny85/**.nix
- boards/attiny85/rust-toolchain.toml
- boards/attiny85/src/**
- flake.lock
push:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/build-attiny85.yaml
- .justfile
- flake.lock
- flake.nix
- boards/attiny85/.cargo/**
- boards/attiny85/avr-unknown-none-attiny85.json
- boards/attiny85/Cargo.lock
- boards/attiny85/Cargo.toml
- boards/attiny85/default.nix
- boards/attiny85/**.nix
- boards/attiny85/rust-toolchain.toml
- boards/attiny85/src/**
- flake.lock
workflow_dispatch:

jobs:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-pico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ name: Build Raspberry Pi Pico
pull_request:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/build-pico.yaml
- .justfile
- flake.lock
- flake.nix
- boards/pico/.cargo/**
- boards/pico/build.rs
- boards/pico/memory.x
- boards/pico/Cargo.lock
- boards/pico/Cargo.toml
- boards/pico/default.nix
- boards/pico/**.nix
- boards/pico/rust-toolchain.toml
- boards/pico/src/**
- flake.lock
push:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/build-pico.yaml
- .justfile
- flake.lock
- flake.nix
- boards/pico/.cargo/**
- boards/pico/build.rs
- boards/pico/memory.x
- boards/pico/Cargo.lock
- boards/pico/Cargo.toml
- boards/pico/default.nix
- boards/pico/**.nix
- boards/pico/rust-toolchain.toml
- boards/pico/src/**
- flake.lock
workflow_dispatch:

jobs:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-qt-py-ch32v203.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,33 @@ name: Build QT Py CH32V203
pull_request:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/build-qt-py-ch32v203.yaml
- .justfile
- flake.lock
- flake.nix
- boards/qt-py-ch32v203/.cargo/**
- boards/qt-py-ch32v203/build.rs
- boards/qt-py-ch32v203/memory.x
- boards/qt-py-ch32v203/Cargo.lock
- boards/qt-py-ch32v203/Cargo.toml
- boards/qt-py-ch32v203/default.nix
- boards/qt-py-ch32v203/**.nix
- boards/qt-py-ch32v203/rust-toolchain.toml
- boards/qt-py-ch32v203/src/**
- flake.lock
push:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/build-qt-py-ch32v203.yaml
- .justfile
- flake.lock
- flake.nix
- boards/qt-py-ch32v203/.cargo/**
- boards/qt-py-ch32v203/build.rs
- boards/qt-py-ch32v203/memory.x
- boards/qt-py-ch32v203/Cargo.lock
- boards/qt-py-ch32v203/Cargo.toml
- boards/qt-py-ch32v203/default.nix
- boards/qt-py-ch32v203/**.nix
- boards/qt-py-ch32v203/rust-toolchain.toml
- boards/qt-py-ch32v203/src/**
- flake.lock
workflow_dispatch:

jobs:
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/clippy-attiny85.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,31 @@ name: Lint Rust code with Clippy
pull_request:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/clippy-attiny85.yaml
- flake.lock
- boards/attiny85/**.rs
- .justfile
- boards/attiny85/.cargo/**
- boards/attiny85/avr-unknown-none-attiny85.json
- boards/attiny85/Cargo.lock
- boards/attiny85/Cargo.toml
- boards/attiny85/**.nix
- boards/attiny85/rust-toolchain.toml
- boards/attiny85/src/**
- flake.lock
push:
branches: ["main"]
paths:
- '*.nix'
- .github/workflows/clippy-attiny85.yaml
- flake.lock
- boards/attiny85/**.rs
- .justfile
- boards/attiny85/.cargo/**
- boards/attiny85/avr-unknown-none-attiny85.json
- boards/attiny85/Cargo.lock
- boards/attiny85/Cargo.toml
- boards/attiny85/**.nix
- boards/attiny85/rust-toolchain.toml
- boards/attiny85/src/**
- flake.lock

jobs:
clippy-attiny85:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/flake-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ name: Check Nix Flake
pull_request:
branches: ["main"]
paths:
- '**.nix'
- .github/workflows/flake-checker.yaml
- flake.lock
push:
branches: ["main"]
paths:
- '**.nix'
- .github/workflows/flake-checker.yaml
- flake.lock

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@ name: Check URLs with Lychee
pull_request:
branches: [main]
paths:
- '**.adoc'
- '**.nix'
- .github/workflows/link-checker.yaml
- flake.lock
- '**.adoc'
push:
branches: [main]
paths:
- '**.adoc'
- '**.nix'
- .github/workflows/link-checker.yaml
- flake.lock
- '**.adoc'
schedule:
# Run once a month on the 14th.
- cron: "0 0 14 * *"
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/treefmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,33 @@ name: Check files with treefmt
"on":
pull_request:
branches: ["main"]
paths:
- '**.json'
- '**.just'
- '**.nix'
- '**.json'
- '**.rs'
- '**.toml'
- '**.yaml'
- '**.yml'
- '**/.justfile'
- '**/justfile'
- .github/workflows/treefmt.yaml
- flake.lock
push:
branches: ["main"]
paths:
- '**.json'
- '**.just'
- '**.nix'
- '**.rs'
- '**.toml'
- '**.yaml'
- '**.yml'
- '**/.justfile'
- '**/justfile'
- .github/workflows/treefmt.yaml
- flake.lock

jobs:
treefmt:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/yamllint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,21 @@ name: yamllint
pull_request:
branches: ["main"]
paths:
- '**.nix'
- '**.yaml'
- '**.yml'
- .github/workflows/yamllint.yaml
- .yamllint.yaml
- flake.lock
- '**.yaml'
- '**.yml'
push:
branches: ["main"]
paths:
- '**.nix'
- '**.yaml'
- '**.yml'
- .github/workflows/yamllint.yaml
- .yamllint.yaml
- flake.lock
- '**.yaml'
- '**.yml'

jobs:
yamllint:
Expand Down

0 comments on commit 8a193c0

Please sign in to comment.