fix(ci): it did not #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | ||
on: [push, pull_request] | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: mlugg/setup-zig@v1 | ||
with: | ||
version: 0.13.0 | ||
- name: check out Lua | ||
if: startsWith(matrix.os 'windows') != true | ||
Check failure on line 15 in .github/workflows/test.yml GitHub Actions / testInvalid workflow file
|
||
uses: actions/checkout@v4 | ||
with: | ||
repository: robbielyman/lua | ||
path: .lua | ||
- name: compile Lua | ||
run: cd .lua && zig build -Dshared=true --prefix . | ||
- name: set up Lua (windows) | ||
if: startsWith(matrix.os 'windows') | ||
uses: leafo/gh-actions-lua@v10 | ||
with: | ||
luaVersion: "5.4.7" | ||
- uses: luarocks/gh-actions-luarocks@v5 | ||
- run: luarocks install busted | ||
- run: zig build test | ||
check-fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: mlugg/setup-zig@v1 | ||
with: | ||
version: 0.13.0 | ||
- run: zig fmt --check . |