Skip to content

Commit 75cbd79

Browse files
committed
Swap to mise based runner to manage tools and versions + run on MacOS
1 parent af721eb commit 75cbd79

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

.github/workflows/test.yaml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,29 @@ on: [push]
44

55
jobs:
66
test:
7-
runs-on: [ubuntu-latest, macos-latest]
87
strategy:
98
matrix:
9+
os: [ubuntu-latest, macOS-latest]
1010
neovim-version: ["v0.9.5", "v0.10.4", "stable", "nightly"]
1111

12+
runs-on: ${{ matrix.os }}
13+
1214
steps:
13-
- uses: actions/checkout@v3
14-
- uses: MunifTanjim/setup-neovim-action@v1
15+
- uses: actions/checkout@v4
16+
17+
- name: Mise
18+
uses: jdx/mise-action@v2
19+
20+
- name: Cache
21+
uses: actions/cache@v4
1522
with:
16-
tag: ${{ matrix.neovim-version }}
17-
- name: Install Neovim plugins
18-
run: |
19-
./script/setup-test-deps
20-
- name: Test with plenary / busted
23+
path: |
24+
.test-config/nvim/pack
25+
key: nfnl-${{ hashFiles('script/setup-test-deps') }}
26+
restore-keys: nfnl-
27+
28+
- name: Test
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2131
run: |
22-
./script/test
32+
mise run -t neovim@${{ matrix.neovim-version }} test

mise.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[tasks.fetch-fennel]
2+
run = "bash script/fetch-fennel.sh"
3+
4+
[tasks.render-api-documentation]
5+
run = "script/render-api-documentation"
6+
7+
[tasks.setup-test-deps]
8+
run = "bash ./script/setup-test-deps"
9+
10+
[tasks.test]
11+
depends = ["setup-test-deps"]
12+
run = "bash ./script/test"

nfnl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/home/olical/repos/Olical/nfnl

0 commit comments

Comments
 (0)