Skip to content

ci: add reusable testing workflow #315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2021
Merged
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
31 changes: 31 additions & 0 deletions .github/workflows/reusable-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Reusable Test

on:
workflow_call:
inputs:
artifact_name:
description: 'The name of the tarantool build artifact'
default: ubuntu-focal
required: false
type: string

jobs:
run_tests:
runs-on: ubuntu-20.04
steps:
- name: 'Clone the metrics module'
uses: actions/checkout@v2
with:
repository: ${{ github.repository_owner }}/metrics

- name: 'Download the tarantool build artifact'
uses: actions/download-artifact@v2
with:
name: ${{ inputs.artifact_name }}

- name: 'Install tarantool'
# Now we're lucky: all dependencies are already installed. Check package
# dependencies when migrating to other OS version.
run: sudo dpkg -i tarantool*.deb

- run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ lint: .rocks

.PHONY: test
test: .rocks
.rocks/bin/luatest
.rocks/bin/luatest -v

.PHONY: test_with_coverage_report
test_with_coverage_report: .rocks
Expand Down