Skip to content

ci: fix Windows tests + enable for PRs #66

ci: fix Windows tests + enable for PRs

ci: fix Windows tests + enable for PRs #66

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
lua: ["5.1", "5.2", "5.3", "5.4", "luajit-2.1.0-beta3"]
steps:
- uses: actions/checkout@v3
- name: Install MSVC Compiler Toolchain
uses: ilammy/msvc-dev-cmd@v1
if: runner.os == 'Windows'
- name: Install Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: ${{ matrix.lua }}
- name: Install Luarocks
# NOTE: This is a fork with Windows support
uses: hishamhm/gh-actions-luarocks@master
- name: Build
run: |
luarocks make
- name: Test
run: |
luarocks test
# FIXME: There seems to be a bug causing busted
# to fail on Windows, because it can't find LuaFileSystem
if: runner.os ~= 'Windows'

Check failure on line 41 in .github/workflows/spec.yml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/spec.yml (Line: 41, Col: 11): Unexpected symbol: '~'. Located at position 11 within expression: runner.os ~= 'Windows'