2024-07-17 06:54:09 -07:00
|
|
|
name: lintcommit
|
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
|
|
|
|
2023-11-30 04:05:13 -07:00
|
|
|
- uses: ./.github/actions/setup
|
|
|
|
|
2023-04-29 05:30:54 -07:00
|
|
|
- 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
|