-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
30 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: "test" | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit-2.1.0-beta3", "luajit-openresty"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: leafo/gh-actions-lua@v8 | ||
with: | ||
luaVersion: ${{ matrix.luaVersion }} | ||
|
||
- uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: dependencies | ||
run: | | ||
luarocks install busted | ||
luarocks install luacov | ||
luarocks install luacov-coveralls | ||
- name: build | ||
run: | | ||
luarocks remove penlight --force | ||
luarocks make | ||
- name: Busted tests | ||
run: | | ||
busted --coverage | ||
- name: Old test suite | ||
run: | | ||
lua run.lua tests --luacov | ||
- name: Examples | ||
run: | | ||
lua run.lua examples | ||
- name: Coverage-report | ||
# only for Codecov reporting | ||
run: | | ||
luacov -c .luacov | ||
- name: Report test coverage (codecov) | ||
if: success() | ||
continue-on-error: true | ||
uses: codecov/codecov-action@v2 | ||
#with: | ||
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
#files: ./coverage1.xml,./coverage2.xml # optional | ||
#flags: unittests # optional | ||
#name: codecov-umbrella # optional | ||
#fail_ci_if_error: true # optional (default = false) | ||
#verbose: true # optional (default = false) | ||
|
||
- name: Report test coverage (coveralls) | ||
if: success() | ||
continue-on-error: true | ||
run: luacov-coveralls | ||
env: | ||
COVERALLS_REPO_TOKEN: ${{ github.token }} |
This file was deleted.
Oops, something went wrong.