diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..245f9f8b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - uses: leafo/gh-actions-lua@v5 + with: + luaVersion: "5.1" + + - uses: leafo/gh-actions-luarocks@v2 + + - name: Install dependencies + run: | + luarocks install luafilesystem + luarocks install busted + luarocks install luacov + luarocks install luacov-coveralls --server=http://rocks.moonscript.org/dev + luarocks install luacheck + + - name: Test + run: | + lua -lluacov bin/spec.lua + luacheck src benchmarks examples + + - name: Report to Coveralls + run: luacov-coveralls \ No newline at end of file