Skip to content

Commit

Permalink
ci: add shaping file validation to the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Sep 18, 2024
1 parent 0fc8da3 commit e6eef51
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/shaping.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check shaping files

on:
push:
branches: [ "main" ]
paths:
- "assets/community/shaping.toml"
- "assets/policy-extras/shaping.toml"
- ".github/workflows/shaping.yml"
pull_request:
branches: [ "main" ]
paths:
- "assets/community/shaping.toml"
- "assets/policy-extras/shaping.toml"
- ".github/workflows/shaping.yml"

env:
CARGO_TERM_COLOR: always

jobs:
check-code-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: validate shaping
run: cargo run -p validate-shaping -- assets/community/shaping.toml assets/policy-extras/shaping.toml

0 comments on commit e6eef51

Please sign in to comment.