Skip to content

Commit

Permalink
fix(ci): split up single job into separate linux + macos jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoomen committed Oct 23, 2020
1 parent 3f8c81f commit 0e25059
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,42 @@ name: CI
on: [push, pull_request]

jobs:
test:
name: Tests
macos:
name: MacOS Tests
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
os: [macos-latest]
neovim: [false]
vim-version: [v7.4.2119, v8.2.1800]
node-version: [10, 14]
binary-target: [macos-x64, linux-x64]
binary-target: [macos-x64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci --no-save
- run: npm run build:binary -- node${{ matrix.node-version }}-${{ matrix.binary-target }}
- uses: rhysd/action-setup-vim@v1
id: vim
with:
version: ${{ matrix.vim-version }}
neovim: ${{ matrix.neovim }}
- name: Run tests
run: ${{ steps.vim.outputs.executable }} -u test/vimrc "+Vader! test/*.vader test/commands/*.vader test/options/*.vader test/filetypes/*/*.vader" 2>&1

linux:
name: Linux Tests
strategy:
matrix:
os: [ubuntu-latest]
neovim: [false]
vim-version: [v7.4.2119, v8.2.1800]
node-version: [10, 14]
binary-target: [linux-x64]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 0e25059

Please sign in to comment.