github actions

This commit is contained in:
Thomas Rudin 2019-11-28 20:02:00 +01:00
parent a54ae10fb7
commit 2b0155c847
3 changed files with 31 additions and 31 deletions

14
.github/workflows/integration-test.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: integration-test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: integration-test
run: ./integration-test.sh

17
.github/workflows/unit-test.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: unit-test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt-get install -y luarocks
- name: lua exec
run: lua test.lua

View File

@ -1,31 +0,0 @@
jobs:
include:
- stage: luacheck
language: generic
sudo: false
addons:
apt:
packages:
- luarocks
before_install:
- luarocks install --local luacheck
script:
- $HOME/.luarocks/bin/luacheck --no-color .
- stage: unit test
language: generic
sudo: false
addons:
apt:
packages:
- luarocks
script:
- lua test.lua
- stage: integration test
language: generic
services:
- docker
script:
- ./integration-test.sh