Skip to content

Commit

Permalink
Merge f90da74 into ee42e92
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jan 26, 2022
2 parents ee42e92 + f90da74 commit 03483f8
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 30 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/test.yml
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 }}
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

0 comments on commit 03483f8

Please sign in to comment.