mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
ci(lint): move some steps before build
This commit is contained in:
parent
49e691f58f
commit
27c3919a48
50
.github/workflows/ci.yml
vendored
50
.github/workflows/ci.yml
vendored
@ -98,34 +98,9 @@ jobs:
|
||||
${{ env.CACHE_NVIM_DEPS_DIR }}
|
||||
key: lint-${{ hashFiles('cmake/*', '**/CMakeLists.txt', '!cmake.deps/**CMakeLists.txt') }}-${{ github.base_ref }}
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: uncrustify
|
||||
run: |
|
||||
${{ env.CACHE_UNCRUSTIFY }} -c ./src/uncrustify.cfg -q --replace --no-backup $(find ./src/nvim -name "*.[ch]")
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: suggester / uncrustify
|
||||
uses: reviewdog/action-suggester@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tool_name: uncrustify
|
||||
cleanup: false
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: check uncrustify
|
||||
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
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: lintc
|
||||
run: make lintc
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: lintstylua
|
||||
uses: JohnnyMorganz/stylua-action@1.0.0
|
||||
@ -145,6 +120,31 @@ jobs:
|
||||
name: lintsh
|
||||
run: make lintsh
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: uncrustify
|
||||
run: |
|
||||
${{ env.CACHE_UNCRUSTIFY }} -c ./src/uncrustify.cfg -q --replace --no-backup $(find ./src/nvim -name "*.[ch]")
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: suggester / uncrustify
|
||||
uses: reviewdog/action-suggester@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
tool_name: uncrustify
|
||||
cleanup: false
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: check uncrustify
|
||||
run: |
|
||||
git diff --color --exit-code
|
||||
|
||||
- name: Build nvim
|
||||
run: ./ci/run_tests.sh build_nvim
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: lintc
|
||||
run: make lintc
|
||||
|
||||
- if: "!cancelled()"
|
||||
name: check-single-includes
|
||||
run: make check-single-includes
|
||||
|
Loading…
Reference in New Issue
Block a user