fix: search for project dir if we have a solution (#35) #149
This file contains hidden or 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: main | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: lint | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: JohnnyMorganz/stylua-action@v2 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
version: latest | |
args: --check . | |
tests: | |
needs: | |
- lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 6 | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
neovim_version: ["v0.11.0"] | |
include: | |
- os: ubuntu-latest | |
neovim_version: "nightly" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "9.0.x" | |
- name: Install C/C++ Compiler | |
uses: rlalik/setup-cpp-compiler@master | |
with: | |
compiler: clang-latest | |
- name: Install tree-sitter CLI | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: tree-sitter-cli | |
- name: Run tests | |
id: test | |
uses: nvim-neorocks/nvim-busted-action@v1 | |
with: | |
nvim_version: ${{ matrix.neovim_version }} | |
- name: Save neotest log | |
if: always() && steps.test.outcome == 'failure' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: neotest-log-${{ matrix.neovim_version }}-${{ matrix.os }} | |
path: ~/.local/state/nvim/neotest.log |