2021-07-18 15:26:17 -07:00
|
|
|
name: "Commit Linter"
|
2021-10-08 17:08:47 -07:00
|
|
|
on:
|
2022-11-05 14:09:50 -07:00
|
|
|
pull_request:
|
2021-10-08 17:08:47 -07:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2022-05-22 08:03:06 -07:00
|
|
|
branches:
|
|
|
|
- 'master'
|
2021-07-18 15:26:17 -07:00
|
|
|
jobs:
|
|
|
|
lint-commits:
|
|
|
|
runs-on: ubuntu-latest
|
2021-10-08 17:08:47 -07:00
|
|
|
if: github.event.pull_request.draft == false
|
2021-07-18 15:26:17 -07:00
|
|
|
steps:
|
2023-09-04 05:51:40 -07:00
|
|
|
- uses: actions/checkout@v4
|
2021-07-18 15:26:17 -07:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-10-19 00:54:48 -07:00
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2023-04-29 05:30:54 -07:00
|
|
|
|
|
|
|
- run: ./.github/scripts/install_deps.sh
|
|
|
|
- uses: ./.github/actions/cache
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2023-10-22 04:30:32 -07:00
|
|
|
cmake -S cmake.deps --preset ci
|
2023-04-29 05:30:54 -07:00
|
|
|
cmake --build .deps
|
|
|
|
cmake --preset ci
|
|
|
|
cmake --build build
|
|
|
|
|
|
|
|
- name: lintcommit
|
|
|
|
run: cmake --build build --target lintcommit
|