Skip to content

build: fixed workflow #3

build: fixed workflow

build: fixed workflow #3

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
jobs:
stylua:
name: stylua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check lua/ plugin/ tests/
luacheck:
name: luacheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Lua and luacheck
run: |
sudo apt-get update
sudo apt-get install -y lua5.4 luarocks
sudo luarocks install luacheck
- name: Run luacheck
run: luacheck lua/ plugin/
test:
name: test (nvim ${{ matrix.neovim }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
neovim: [stable, nightly]
steps:
- uses: actions/checkout@v4
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim }}
- name: Install C compiler (for treesitter parsers)
run: |
sudo apt-get update
sudo apt-get install -y build-essential
- name: Run headless smoke test
env:
OPENAPI_TEST_DEPS: ${{ github.workspace }}/.test-deps
run: |
nvim --headless -u tests/minimal_init.lua -l tests/smoke.lua