Skip to content

ci: Update CI to split jobs #2

ci: Update CI to split jobs

ci: Update CI to split jobs #2

Workflow file for this run

name: Run tests

Check failure on line 1 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

(Line: 32, Col: 18): A sequence was not expected
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.actor }}
cancel-in-progress: true
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 test"
luacheck:
name: Luacheck
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: nebularg/actions-luacheck@v1
with:
files: ["lua", "plugin", "test"]
test:
name: Test on neovim ${{ matrix.neovim_version }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
neovim_version: ["v0.9.5", "v0.10.4", "v0.11.4", "nightly"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim_version }}
- name: Test GutterMarks
run: make test