fixup: quick update, squash later #378
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
pull_request: | |
branches: | |
- 'master' | |
- 'release-[0-9]+.[0-9]+' | |
paths-ignore: | |
- 'contrib/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
env: | |
ASAN_OPTIONS: detect_leaks=1:check_initialization_order=1:log_path=${{ github.workspace }}/build/log/asan:intercept_tls_get_addr=0 | |
BIN_DIR: ${{ github.workspace }}/bin | |
BUILD_DIR: ${{ github.workspace }}/build | |
INSTALL_PREFIX: ${{ github.workspace }}/nvim-install | |
LOG_DIR: ${{ github.workspace }}/build/log | |
NVIM_LOG_FILE: ${{ github.workspace }}/build/.nvimlog | |
TSAN_OPTIONS: log_path=${{ github.workspace }}/build/log/tsan | |
VALGRIND_LOG: ${{ github.workspace }}/build/log/valgrind-%p.log | |
# TEST_FILE: test/functional/core/startup_spec.lua | |
# TEST_FILTER: foo | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
env: | |
CC: clang | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- run: rustup toolchain install stable --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo install stylua | |
- name: Build third-party deps | |
run: | | |
cmake -S cmake.deps -B .deps -G Ninja | |
cmake --build .deps | |
- run: cmake -B build -G Ninja -D CI_LINT=ON | |
- if: "!cancelled()" | |
name: Determine if run should be aborted | |
id: abort_job | |
run: echo "status=${{ job.status }}" >> $GITHUB_OUTPUT | |
- if: success() || failure() && steps.abort_job.outputs.status == 'success' | |
name: stylua | |
run: cmake --build build --target lintlua-stylua | |
- if: success() || failure() && steps.abort_job.outputs.status == 'success' | |
name: luacheck | |
run: cmake --build build --target lintlua-luacheck | |
- if: success() || failure() && steps.abort_job.outputs.status == 'success' | |
name: lintsh | |
run: cmake --build build --target lintsh | |
- if: success() || failure() && steps.abort_job.outputs.status == 'success' | |
name: clint.py | |
run: cmake --build build --target lintc-clint | |
- if: success() || failure() && steps.abort_job.outputs.status == 'success' | |
name: clang-tidy | |
run: cmake --build build --target lintc-clang-tidy | |
- if: success() || failure() && steps.abort_job.outputs.status == 'success' | |
name: uncrustify | |
run: cmake --build build --target lintc-uncrustify |