-
Notifications
You must be signed in to change notification settings - Fork 5
64 lines (53 loc) · 1.54 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
linux:
# We want to run on external PRs, but not on our own internal
# PRs as they'll be run by the push to the branch.
#
# The main trick is described here:
# https://github.com/Dart-Code/Dart-Code/pull/2375
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
tarantool:
- '1.10'
- '2.8'
metrics:
- ''
- '1.0.0'
coveralls: [false]
include:
- tarantool: '2.11'
metrics: '1.0.0'
coveralls: true
runs-on: ubuntu-20.04
steps:
- name: Install tarantool ${{ matrix.tarantool }}
uses: tarantool/setup-tarantool@v2
with:
tarantool-version: ${{ matrix.tarantool }}
- name: Clone the module
uses: actions/checkout@v3
- name: Install requirements
run: make deps
- name: Install metrics
if: matrix.metrics != ''
run: |
tarantoolctl rocks install metrics ${{ matrix.metrics }}
- name: Run linter
run: make lint
- name: Run tests
run: make test
- name: Run tests with coverage
run: make coverage
if: ${{ matrix.coveralls }}
- name: Send code coverage to coveralls.io
run: .rocks/bin/luacov-coveralls -i sharded_queue
if: ${{ matrix.coveralls }}
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}