@@ -22,77 +22,77 @@ jobs:
22
22
node : ['14', '16', '18', '20']
23
23
os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
24
24
exclude :
25
- - os : macos-latest
26
- node : ' 14'
27
- - os : macos-latest
28
- node : ' 16'
29
- - os : windows-latest
30
- node : ' 14'
31
- - os : windows-latest
32
- node : ' 16'
25
+ - os : macos-latest
26
+ node : ' 14'
27
+ - os : macos-latest
28
+ node : ' 16'
29
+ - os : windows-latest
30
+ node : ' 14'
31
+ - os : windows-latest
32
+ node : ' 16'
33
33
include :
34
- - os : ubuntu-latest
35
- NIGHTLY : nvim-linux64.tar.gz
36
- NVIM_BIN_PATH : nvim-linux64/bin
37
- EXTRACT : tar xzf
38
- - os : macos-latest
39
- NIGHTLY : nvim-macos-x86_64.tar.gz
40
- NVIM_BIN_PATH : nvim-macos-x86_64/bin
41
- EXTRACT : tar xzf
42
- - os : windows-latest
43
- NIGHTLY : nvim-win64.zip
44
- NVIM_BIN_PATH : nvim-win64/bin
45
- EXTRACT : unzip
34
+ - os : ubuntu-latest
35
+ NIGHTLY : nvim-linux64.tar.gz
36
+ NVIM_BIN_PATH : nvim-linux64/bin
37
+ EXTRACT : tar xzf
38
+ - os : macos-latest
39
+ NIGHTLY : nvim-macos-x86_64.tar.gz
40
+ NVIM_BIN_PATH : nvim-macos-x86_64/bin
41
+ EXTRACT : tar xzf
42
+ - os : windows-latest
43
+ NIGHTLY : nvim-win64.zip
44
+ NVIM_BIN_PATH : nvim-win64/bin
45
+ EXTRACT : unzip
46
46
47
47
runs-on : ${{ matrix.os }}
48
48
49
49
# Steps represent a sequence of tasks that will be executed as part of the job
50
50
steps :
51
- - uses : actions/checkout@v4
52
-
53
- - uses : actions/setup-node@v4
54
- with :
55
- cache : npm
56
- node-version : ${{ matrix.node }}
57
-
58
- - name : update npm (for node.js 14)
59
- if : matrix.node == '14'
60
- run : npm install -g 'npm@^8.8.0'
61
-
62
- - name : install neovim
63
- run : |
64
- curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
65
- ${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
66
- echo '${{ runner.os }}'
67
-
68
- - name : update path (bash)
69
- if : runner.os != 'Windows'
70
- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
71
-
72
- - name : update path (windows)
73
- if : runner.os == 'Windows'
74
- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
75
-
76
- - name : install dependencies
77
- run : npm ci
78
-
79
- - name : build
80
- run : npm run build
81
-
82
- - name : lint
83
- # Skip on old Node.js, devDependencies use newish JS features.
84
- if : matrix.node != '14'
85
- run : npm run lint
86
-
87
- - name : test
88
- run : |
89
- echo $PATH
90
- which nvim
91
- nvim --version
92
-
93
- npm run test-coverage --stream
94
-
95
- - uses : codecov/codecov-action@v5
96
- if : matrix.node == '20'
97
- with :
98
- verbose : true # optional (default = false)
51
+ - uses : actions/checkout@v4
52
+
53
+ - uses : actions/setup-node@v4
54
+ with :
55
+ cache : npm
56
+ node-version : ${{ matrix.node }}
57
+
58
+ - name : update npm (for node.js 14)
59
+ if : matrix.node == '14'
60
+ run : npm install -g 'npm@^8.8.0'
61
+
62
+ - name : install neovim
63
+ run : |
64
+ curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
65
+ ${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
66
+ echo '${{ runner.os }}'
67
+
68
+ - name : update path (bash)
69
+ if : runner.os != 'Windows'
70
+ run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
71
+
72
+ - name : update path (windows)
73
+ if : runner.os == 'Windows'
74
+ run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
75
+
76
+ - name : install dependencies
77
+ run : npm ci
78
+
79
+ - name : build
80
+ run : npm run build
81
+
82
+ - name : lint
83
+ # Skip on old Node.js, devDependencies use newish JS features.
84
+ if : matrix.node != '14'
85
+ run : npm run lint
86
+
87
+ - name : test
88
+ run : |
89
+ echo $PATH
90
+ which nvim
91
+ nvim --version
92
+
93
+ npm run test-coverage --stream
94
+
95
+ - uses : codecov/codecov-action@v5
96
+ if : matrix.node == '20'
97
+ with :
98
+ verbose : true # optional (default = false)
0 commit comments