aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/test.yml
blob: 35f710808797ebe9958e9e7defe0b50ef8a0e743 (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
33
34
35
name: test
on:
  pull_request:
    branches:
      - master

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}

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

      - uses: leafo/gh-actions-lua@v11
        with:
          luaVersion: "luajit-openresty"
      - uses: leafo/gh-actions-luarocks@v5

      - name: Install vusted
        run: luarocks install vusted

      - name: Run test
        run: vusted ./test