-
Notifications
You must be signed in to change notification settings - Fork 4
51 lines (44 loc) · 1.1 KB
/
tests.yml
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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
node: ['12']
cc: [gcc]
include:
- os: ubuntu-latest
NVIM_SLUG: nvim-linux64
- os: macos-latest
NVIM_SLUG: nvim-macos
name: Run tests
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.cc }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set Node.js
uses: actions/setup-node@v2
with:
cache: yarn
node-version: ${{ matrix.node }}
- name: Install neovim
run: |
curl -LO "https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NVIM_SLUG }}.tar.gz"
tar xzf ${{ matrix.NVIM_SLUG }}.tar.gz
echo "$(pwd)/${{ matrix.NVIM_SLUG }}/bin" >> $GITHUB_PATH
- name: yarn install
run: yarn install --frozen-lockfile
- name: Run tests
env:
NODE_ENV: test
run: |
nvim --version
yarn test