-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e267fbd
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: isotovideo | ||
# yamllint disable-line rule:truthy | ||
on: [push, pull_request] | ||
jobs: | ||
isotovideo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare openQA test module | ||
run: | | ||
mkdir -p lib/Foo/Bar tests/spam needles | ||
printf "package Foo::Bar::Baz; use Mojo::Base 'Exporter'; our @EXPORT_OK = qw(bla); sub bla {}; 1" > lib/Foo/Bar/Baz.pm | ||
printf "use Mojo::Base 'basetest'; use Foo::Bar::Baz 'bla'; sub run {}; 1" > tests/spam/eggs.pm | ||
- name: Run the action implemented in this repo | ||
uses: ./ | ||
with: | ||
schedule: tests/spam/eggs | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Test results | ||
path: . | ||
if: always() |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Isotovideo test runner | ||
|
||
Execute standalone [openQA](https://open.qa) tests within containers. If your repository contains a test distribution or an openQA wheel this action can be used to execute it. | ||
|
||
## Inputs | ||
|
||
## schedule | ||
|
||
Analoguous to the SCHEDULE environment variable you can specify a list of test modules to be executed instead of using a main.pm in the same repository. | ||
|
||
## Example usage | ||
|
||
```yaml | ||
on: [push, pull_request] | ||
jobs: | ||
isotovideo: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/isotovideo-action@main | ||
with: | ||
schedule: tests/foo/bar | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Test results | ||
path: . | ||
if: always() | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: 'Isotovideo test runner' | ||
description: 'Execute standalone openQA tests within containers' | ||
branding: | ||
icon: 'check-circle' | ||
color: 'green' | ||
|
||
inputs: | ||
schedule: | ||
description: The test modules to be executed | ||
required: false | ||
default: '' | ||
|
||
runs: | ||
using: docker | ||
image: "registry.opensuse.org/devel/openqa/containers-tw/isotovideo:qemu-x86" | ||
args: | ||
- QEMU_NO_KVM=1 | ||
- CASEDIR=. | ||
- SCHEDULE=${{ inputs.schedule }} |