Skip to content

test

test #60

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Nix
if: runner.os != 'Windows'
uses: DeterminateSystems/nix-installer-action@main
- name: Run checks
if: runner.os != 'Windows'
run: nix flake check -Lvv --log-format bar-with-logs
- name: Set up windows msvc compiler
uses: step-security/msvc-dev-cmd@v1
- name: Setup Lua
if: runner.os == 'Windows'
uses: leafo/gh-actions-lua@v13
with:
luaVersion: "5.1"
- name: Install LuaRocks
if: runner.os == 'Windows'
shell: powershell
run: |
Invoke-WebRequest `
-Uri "https://luarocks.github.io/luarocks/releases/luarocks-3.13.0-windows-64.zip" `
-OutFile "luarocks.zip"
Expand-Archive luarocks.zip -DestinationPath C:\luarocks
printf '%s' ";C:\luarocks\src\bin" >> $env:GITHUB_PATH
printf '%s' "C:\luarocks\src\bin" >> $env:PATH
printf '%s' "C:\luarocks\src\bin"
- name: Build via luarocks
if: runner.os == 'Windows'
run: luarocks make
- name: Test via luarocks
if: runner.os == 'Windows'
run: luarocks test