Skip to content

Commit

Permalink
Merge 8a97f2b into ee42e92
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Jan 26, 2022
2 parents ee42e92 + 8a97f2b commit 2f1f228
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 31 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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-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: Report test coverage
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.

2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ build_script:
- luarocks make

test_script:
- busted -c -v
- busted --coverage
- lua run.lua tests --luacov
- lua run.lua examples

Expand Down

0 comments on commit 2f1f228

Please sign in to comment.