ci: run lintcommit with cmake target

This increases CI time, but prevents situations where it works on CI but
not locally.
This commit is contained in:
dundargoc 2023-04-29 14:30:54 +02:00 committed by GitHub
parent 65fdd019b3
commit 13a24b905e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,15 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }} ref: ${{ github.event.pull_request.head.sha }}
- uses: rhysd/action-setup-vim@v1
with: - run: ./.github/scripts/install_deps.sh
neovim: true - uses: ./.github/actions/cache
- run: nvim --clean -l scripts/lintcommit.lua main - name: Build
run: |
cmake -S cmake.deps -B .deps -G Ninja
cmake --build .deps
cmake --preset ci
cmake --build build
- name: lintcommit
run: cmake --build build --target lintcommit