-
Notifications
You must be signed in to change notification settings - Fork 20
61 lines (55 loc) · 1.46 KB
/
Copy pathmain.yml
File metadata and controls
61 lines (55 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: main
on:
push:
branches: [main]
pull_request:
concurrency:
group: github.head_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.10.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