Update environment.lua #9
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: spec | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ 'master' ] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
lua-version: ["5.4", "5.3", "5.2", "5.1", "luajit"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: leafo/gh-actions-lua@v8.0.0 | |
with: | |
luaVersion: ${{ matrix.lua-version }} | |
- uses: leafo/gh-actions-luarocks@v4.0.0 | |
- name: install | |
run: | | |
luarocks install busted | |
luarocks install luacov | |
- name: build | |
run: | | |
make | |
- name: test | |
run: | | |
make check BUSTED_OPTS='--coverage' | |
luacov lib/ | |
bash <(curl -s https://codecov.io/bash) -f luacov.report.out |