-
Notifications
You must be signed in to change notification settings - Fork 170
55 lines (48 loc) · 1.27 KB
/
ci.yaml
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
52
53
54
55
name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: "*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.actor }}
cancel-in-progress: true
jobs:
unit_tests:
name: unit tests
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rev: [nightly, v0.10.3]
include:
- os: ubuntu-latest
install-deps: sudo apt-get update && sudo apt-get install -y fzf ripgrep fd-find
- os: macos-latest
install-deps: brew update && brew install fzf ripgrep fd
- os: windows-latest
install-deps: choco install fzf ripgrep fd
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.rev }}
- name: Install Dependencies
shell: bash
run: |
${{ matrix.install-deps }}
nvim --version
fzf --version
rg --version
if [ "$RUNNER_OS" == "Linux" ]; then
fdfind --version
else
fd --version
fi
make deps
- name: Run tests
run: |
make test