Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kalikiana committed Aug 3, 2022
0 parents commit e267fbd
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/isotovideo.yaml
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()
28 changes: 28 additions & 0 deletions README.md
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()
```
20 changes: 20 additions & 0 deletions action.yaml
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 }}

0 comments on commit e267fbd

Please sign in to comment.