ci: move tarantool installation to separate action #233
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: testing | |
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: | |
- 'debug-master' | |
include: | |
- tarantool: '3.1' | |
coveralls: true | |
env: | |
TNT_DEBUG_PATH: /home/runner/tnt-debug | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone the module | |
uses: actions/checkout@v3 | |
- name: Install Tarantool | |
uses: ./.github/actions/install-tarantool | |
with: ${{ matrix.tarantool }} | |
- name: Setup tt | |
run: | | |
curl -L https://tarantool.io/release/3/installer.sh | bash | |
sudo apt install -y tt | |
tt version | |
- name: Cache rocks | |
uses: actions/cache@v3 | |
id: cache-rocks | |
with: | |
path: .rocks/ | |
key: "cache-rocks-${{ matrix.tarantool }}${{ env.VERSION_POSTFIX }}" | |
- name: Install requirements | |
run: make deps depname=coverage | |
if: steps.cache-rocks.outputs.cache-hit != 'true' | |
- run: echo $PWD/.rocks/bin >> $GITHUB_PATH | |
- run: make test | |
- name: Send code coverage to 'coveralls.io' | |
run: make coveralls | |
if: ${{ matrix.coveralls }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |