From 13a24b905e1646767fed908b8dbdb535a65414ab Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sat, 29 Apr 2023 14:30:54 +0200 Subject: [PATCH] ci: run lintcommit with cmake target This increases CI time, but prevents situations where it works on CI but not locally. --- .github/workflows/lintcommit.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lintcommit.yml b/.github/workflows/lintcommit.yml index 0bd92c05ec..e56211c29b 100644 --- a/.github/workflows/lintcommit.yml +++ b/.github/workflows/lintcommit.yml @@ -13,7 +13,15 @@ jobs: with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - - uses: rhysd/action-setup-vim@v1 - with: - neovim: true - - run: nvim --clean -l scripts/lintcommit.lua main + + - run: ./.github/scripts/install_deps.sh + - uses: ./.github/actions/cache + - 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