Skip to content

Commit

Permalink
switch to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Jun 24, 2022
1 parent 211c2a5 commit f77f248
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 35 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: ci

on: [push, pull_request]

jobs:
TestMatrix:
strategy:
matrix:
lua-version: ["5.4", "5.3", "5.2", "5.1", "luajit"]
os: ["ubuntu-latest"]
libflag: ["-shared --coverage"]
include:
- os: "macos-latest"
lua-version: "5.4"
libflag: "-bundle -undefined dynamic_lookup -all_load --coverage"
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@master

- uses: leafo/gh-actions-lua@v8.0.0
with:
luaVersion: ${{ matrix.lua-version }}

- uses: leafo/gh-actions-luarocks@master

- name: Prep
run: |
pip install --user cpp-coveralls
luarocks install lua-path
luarocks install dkjson
luarocks install luacov
# install luacov-coveralls, but avoid installing luafilesystem
luarocks install luacov-coveralls --server=https://luarocks.org/dev --deps-mode=none
- name: Build
run: |
luarocks make CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="${{ matrix.libflag }}"
- name: Test
run: |
lua -lluacov tests/test.lua
- name: Coverage
run: |
export PATH="/Users/runner/Library/Python/2.7/bin:$PATH"
coveralls -b . -i src --dump c.report.json
luacov-coveralls -j c.report.json -v -t ${{ secrets.GITHUB_TOKEN }}
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![License](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE)
[![Build Status](https://travis-ci.org/keplerproject/luafilesystem.svg?branch=master)](https://travis-ci.org/keplerproject/luafilesystem)
[![Build Status](https://github.com/keplerproject/luafilesystem/actions/workflows/ci.yml/badge.svg)](https://github.com/keplerproject/luafilesystem/actions)
[![Build status](https://ci.appveyor.com/api/projects/status/y04s4ms7u16trw8e?svg=true)](https://ci.appveyor.com/project/ignacio/luafilesystem)
[![Coverage Status](https://coveralls.io/repos/keplerproject/luafilesystem/badge.png)](https://coveralls.io/r/keplerproject/luafilesystem)

Expand Down

0 comments on commit f77f248

Please sign in to comment.