Trigger workflow #63
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: | |
branches: | |
- master | |
# Run tests for any PRs. | |
pull_request: | |
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: Install dependencies | |
run: | | |
luarocks install luacheck | |
luarocks install busted | |
luarocks install http | |
- name: build | |
run: luarocks make | |
- name: Lint and test | |
run: | | |
luacheck src/init.lua | |
busted spec |