| 1 | # SPDX-FileCopyrightText: 2025 Shun Sakai |
| 2 | # |
| 3 | # SPDX-License-Identifier: Apache-2.0 OR MIT |
| 4 | |
| 5 | name: Tombi |
| 6 | |
| 7 | on: |
| 8 | pull_request: |
| 9 | paths: |
| 10 | - "**.toml" |
| 11 | push: |
| 12 | paths: |
| 13 | - "**.toml" |
| 14 | workflow_dispatch: |
| 15 | |
| 16 | jobs: |
| 17 | tombi: |
| 18 | name: Tombi |
| 19 | runs-on: ubuntu-24.04 |
| 20 | steps: |
| 21 | - name: Checkout code |
| 22 | uses: actions/checkout@v6 |
| 23 | - name: Setup Tombi |
| 24 | uses: tombi-toml/[email protected] |
| 25 | env: |
| 26 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 27 | - name: Run formatter in check mode |
| 28 | run: tombi format --check |
| 29 | - name: Run linter |
| 30 | run: tombi lint |