From 27c3919a48b5a8bccdcf4806ddcde3add1dac4e7 Mon Sep 17 00:00:00 2001 From: Lewis Russell Date: Sun, 14 Aug 2022 14:56:15 +0100 Subject: ci(lint): move some steps before build --- .github/workflows/ci.yml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d35e10046..560ffa7710 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -98,6 +98,28 @@ jobs: ${{ env.CACHE_NVIM_DEPS_DIR }} key: lint-${{ hashFiles('cmake/*', '**/CMakeLists.txt', '!cmake.deps/**CMakeLists.txt') }}-${{ github.base_ref }} + - name: Build third-party deps + run: ./ci/before_script.sh + + - if: "!cancelled()" + name: lintstylua + uses: JohnnyMorganz/stylua-action@1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --check runtime/ + + - if: "!cancelled()" + name: lintlua + run: make lintlua + + - if: "!cancelled()" + name: lintpy + run: make lintpy + + - if: "!cancelled()" + name: lintsh + run: make lintsh + - if: "!cancelled()" name: uncrustify run: | @@ -116,9 +138,6 @@ jobs: run: | git diff --color --exit-code - - name: Build third-party deps - run: ./ci/before_script.sh - - name: Build nvim run: ./ci/run_tests.sh build_nvim @@ -126,25 +145,6 @@ jobs: name: lintc run: make lintc - - if: "!cancelled()" - name: lintstylua - uses: JohnnyMorganz/stylua-action@1.0.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --check runtime/ - - - if: "!cancelled()" - name: lintlua - run: make lintlua - - - if: "!cancelled()" - name: lintpy - run: make lintpy - - - if: "!cancelled()" - name: lintsh - run: make lintsh - - if: "!cancelled()" name: check-single-includes run: make check-single-includes -- cgit