mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06: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 }}
|
${{ env.CACHE_NVIM_DEPS_DIR }}
|
||||||
key: lint-${{ hashFiles('cmake/*', '**/CMakeLists.txt', '!cmake.deps/**CMakeLists.txt') }}-${{ github.base_ref }}
|
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
|
- name: Build third-party deps
|
||||||
run: ./ci/before_script.sh
|
run: ./ci/before_script.sh
|
||||||
|
|
||||||
- name: Build nvim
|
|
||||||
run: ./ci/run_tests.sh build_nvim
|
|
||||||
|
|
||||||
- if: "!cancelled()"
|
|
||||||
name: lintc
|
|
||||||
run: make lintc
|
|
||||||
|
|
||||||
- if: "!cancelled()"
|
- if: "!cancelled()"
|
||||||
name: lintstylua
|
name: lintstylua
|
||||||
uses: JohnnyMorganz/stylua-action@1.0.0
|
uses: JohnnyMorganz/stylua-action@1.0.0
|
||||||
@ -145,6 +120,31 @@ jobs:
|
|||||||
name: lintsh
|
name: lintsh
|
||||||
run: make 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()"
|
- if: "!cancelled()"
|
||||||
name: check-single-includes
|
name: check-single-includes
|
||||||
run: make check-single-includes
|
run: make check-single-includes
|
||||||
|
Loading…
Reference in New Issue
Block a user