Skip to content

Commit

Permalink
Add macos-latest runner
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanzon committed Mar 23, 2024
1 parent 89408fa commit fc01a76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ jobs:
tests:
strategy:
matrix:
editor: [vim, neovim]
version: [stable, nightly]
neovim: [true, false]
name: ${{ matrix.neovim && 'neovim' || 'vim' }} ${{ matrix.version }}
runs-on: ubuntu-latest
os: [ubuntu-latest, macos-latest]
name: ${{ matrix.editor }}-${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
version: ${{ matrix.version }}
neovim: ${{ matrix.neovim }}
- run: make test
if: ${{ !matrix.neovim }}
- run: make test-nvim
if: ${{ matrix.neovim }}
neovim: ${{ matrix.editor == 'neovim' }}
- run: make test-${{ matrix.editor }}
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
test: deps
test: test-vim test-neovim

test-vim: dependencies
vim -u test/vimrc -c 'Vader! test/*.vader'

test-nvim: deps
test-neovim: dependencies
VADER_OUTPUT_FILE=/dev/stderr nvim -u test/vimrc -c 'Vader! test/*.vader' --headless

deps:
dependencies:
test -L pack/testing/start/vim-textobj-matchit && exit 0; \
mkdir -p pack/testing/start; \
cd pack/testing/start; \
Expand All @@ -16,4 +18,4 @@ deps:
clean:
rm -rf pack

.PHONY: test test-nvim deps clean
.PHONY: test test-vim test-neovim dependencies clean

0 comments on commit fc01a76

Please sign in to comment.