Skip to content

ci: fix tests syntax #15

ci: fix tests syntax

ci: fix tests syntax #15

Workflow file for this run

name: test
on:
pull_request: ~
push:
branches:
- main
jobs:
build:
name: Run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
neovim-version: ["nightly", "stable", "v0.9.0"]
steps:
- uses: actions/checkout@v4
- name: Install luau-lsp
if: runner.os == "Linux"

Check failure on line 21 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 21, Col: 13): Unexpected symbol: '"Linux"'. Located at position 14 within expression: runner.os == "Linux" .github/workflows/test.yml (Line: 28, Col: 13): Unexpected symbol: '"Windows"'. Located at position 14 within expression: runner.os == "Windows"
run: |
wget https://github.com/JohnnyMorganz/luau-lsp/releases/latest/download/luau-lsp-linux-arm64.zip
unzip luau-lsp-linux-arm64.zip
mv luau-lsp $GITHUB_PATH
- name: Install luau-lsp
if: runner.os == "Windows"
run: |
curl -L -o luau-lsp-win64.zip https://github.com/JohnnyMorganz/luau-lsp/releases/latest/download/luau-lsp-win64.zip
tar -xf luau-lsp-win64.zip
mv luau-lsp.exe $env:GITHUB_PATH
- name: Run tests
uses: nvim-neorocks/nvim-busted-action@v1
with:
nvim_version: ${{ matrix.neovim-version }}