57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
|
name: coc.nvim CI
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
test:
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
os: [ubuntu-latest]
|
||
|
node-version: [10, 14]
|
||
|
|
||
|
env:
|
||
|
NODE_ENV: test
|
||
|
|
||
|
steps:
|
||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: ${{ matrix.node-version }}
|
||
|
- name: Install yarn
|
||
|
run: |
|
||
|
curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: yarn install
|
||
|
run: |
|
||
|
yarn global add typescript
|
||
|
yarn
|
||
|
- name: yarn lint
|
||
|
run: yarn lint
|
||
|
- if: matrix.os == 'macos-latest'
|
||
|
name: yarn test on macOS
|
||
|
run: |
|
||
|
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-macos.tar.gz
|
||
|
tar xzf nvim-macos.tar.gz
|
||
|
export PATH="${PATH}:node_modules/.bin:$(pwd)/nvim-osx64/bin"
|
||
|
nvim --version
|
||
|
yarn test
|
||
|
- if: matrix.os == 'ubuntu-latest'
|
||
|
name: yarn test on Ubuntu
|
||
|
run: |
|
||
|
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz
|
||
|
tar xzf nvim-linux64.tar.gz
|
||
|
export PATH="${PATH}:node_modules/.bin:$(pwd)/nvim-linux64/bin"
|
||
|
nvim --version
|
||
|
yarn test
|
||
|
env:
|
||
|
NODE_ENV: test
|