aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
blob: ed1a2ff3751959117b36df7eb5aafa530daf0121 (plain) (blame)
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
name: test

on:
  pull_request:
    branches:
      - master

jobs:
  test:
    name: Run Test
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest]
        nvim_version: [nightly, 'v0.9.5']
    steps:
      - uses: actions/checkout@v4
      - uses: rhysd/action-setup-vim@v1
        with:
          neovim: true
          version: ${{ matrix.nvim_version }}

      - uses: leafo/gh-actions-lua@v10
        with:
          luaVersion: "luajit-openresty"
      - uses: leafo/gh-actions-luarocks@v4

      - name: Install vusted
        run: luarocks install vusted

      - name: Run test
        run: vusted ./test