mirror of
https://github.com/TangentFoxy/lua-sandbox.git
synced 2025-07-27 18:42:21 +00:00
chore(ci) github actions for ci
This commit is contained in:
committed by
Enrique García Cota
parent
a9fdb8a32a
commit
7de90f6ccf
30
.github/workflows/test.yml
vendored
Normal file
30
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: test
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
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@v8.0.0
|
||||||
|
with:
|
||||||
|
luaVersion: ${{ matrix.luaVersion }}
|
||||||
|
|
||||||
|
- uses: leafo/gh-actions-luarocks@v4.0.0
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
run: |
|
||||||
|
luarocks install busted
|
||||||
|
luarocks install busted-htest
|
||||||
|
luarocks make
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
run: |
|
||||||
|
busted -o htest
|
Reference in New Issue
Block a user