Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/actions/CI/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:18.04

RUN DEBIAN_FRONTEND=noninteractive \
TZ=Europe/Minsk \
apt-get update && apt-get install -y curl unzip

RUN curl -L https://tarantool.io/CpzRHm/release/2.6/installer.sh | bash

RUN apt-get -y install tarantool

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
5 changes: 5 additions & 0 deletions .github/actions/CI/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: 'Tests and Lint'
description: 'Run test cases and check lint'
runs:
using: 'docker'
image: 'Dockerfile'
14 changes: 14 additions & 0 deletions .github/actions/CI/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

echo "building..."
make build

echo "bootstrapping..."
make bootstrap

echo "Running lint"
make lint

echo "Running tests"
.rocks/bin/luatest -v --coverage
.rocks/bin/luacov . && grep -A999 '^Summary' luacov.report.out
29 changes: 29 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs a set of commands using the runners shell
- name: Run a Tests and Lint
uses: ./.github/actions/CI
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ lint:
.PHONY: test
test: lint
rm -f luacov*
.rocks/bin/luatest -v --shuffle all --coverage
.rocks/bin/luatest -v --coverage
.rocks/bin/luacov . && grep -A999 '^Summary' luacov.report.out