-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (55 loc) · 1.18 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
52
53
54
55
56
57
58
name: tests
on:
push:
branches:
- main
paths:
- "lua/**"
- "spec/**"
- ".github/workflows/tests.yml"
pull_request:
branches:
- main
paths:
- "lua/**"
- "spec/**"
- ".github/workflows/tests.yml"
env:
CI: true
ROAM_DEBUG: true
ROAM_TEST_REPORT: false
ROAM_WAIT_TIME: 500
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check lua/ spec/
tests:
strategy:
fail-fast: false
matrix:
version: [v0.9.2, v0.9.4, v0.9.5, nightly]
os: [ubuntu-latest]
include:
- os: windows-latest
version: v0.9.5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
id: neovim
with:
neovim: true
version: ${{ matrix.version }}
- name: Run tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 10
command: make test