mirror of
https://github.com/FourierTransformer/ftcsv.git
synced 2024-11-19 19:54:23 +00:00
43 lines
1008 B
YAML
43 lines
1008 B
YAML
name: Run Tests and Code Coverage
|
||
|
||
on:
|
||
push:
|
||
branches: [ master ]
|
||
tags: [ '*.*.*' ]
|
||
pull_request:
|
||
branches: [ master ]
|
||
|
||
jobs:
|
||
test:
|
||
runs-on: ubuntu-latest
|
||
strategy:
|
||
matrix:
|
||
luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty" ]
|
||
steps:
|
||
- uses: actions/checkout@master
|
||
|
||
- name: Setup ‘lua’
|
||
uses: leafo/gh-actions-lua@v9
|
||
with:
|
||
luaVersion: ${{ matrix.luaVersion }}
|
||
- name: Setup ‘luarocks’
|
||
uses: leafo/gh-actions-luarocks@v4
|
||
|
||
- name: install depedencies
|
||
run: |
|
||
luarocks install busted
|
||
luarocks install lua-cjson
|
||
luarocks install luacov
|
||
luarocks install luacov-coveralls
|
||
|
||
|
||
- name: run unit tests with coverage
|
||
run: busted --verbose --coverage
|
||
|
||
- name: Report test coverage
|
||
if: success()
|
||
continue-on-error: true
|
||
run: luacov-coveralls -e .luarocks
|
||
env:
|
||
COVERALLS_REPO_TOKEN: ${{ github.token }}
|