lintcommit.yml (652B)
1 name: lintcommit 2 on: 3 pull_request: 4 types: [opened, synchronize, reopened, ready_for_review] 5 branches: 6 - 'master' 7 jobs: 8 lint-commits: 9 runs-on: ubuntu-latest 10 if: github.event.pull_request.draft == false 11 steps: 12 - uses: actions/checkout@v6 13 with: 14 fetch-depth: 0 15 ref: ${{ github.event.pull_request.head.sha }} 16 17 - uses: ./.github/actions/setup 18 19 - name: Build 20 run: | 21 cmake -S cmake.deps --preset ci 22 cmake --build .deps 23 cmake --preset ci 24 cmake --build build 25 26 - name: lintcommit 27 run: cmake --build build --target lintcommit