add github actions workflow

This commit is contained in:
leaf corcoran 2020-11-22 16:27:50 -08:00
parent df7b10335d
commit 91b483323c

31
.github/workflows/spec.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: "spec"
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit", "luajit-openresty"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: leafo/gh-actions-lua@master
with:
luaVersion: ${{ matrix.luaVersion }}
- uses: leafo/gh-actions-luarocks@master
- name: build
run: |
luarocks install busted
luarocks install loadkit
luarocks make
- name: test
run: |
busted -o utfTerminal