Create a github action that accepts any command with args and runs it in a container that is prepared with all the dependencies for koji (hub, builder, command line), so all tests, like pylint or unit tests can run in it.
12 lines
282 B
YAML
12 lines
282 B
YAML
name: 'Koji plugin test environment'
|
|
description: 'Environment prepared for running koji plugin tests'
|
|
inputs:
|
|
run:
|
|
description: 'What to run'
|
|
required: true
|
|
default: 'echo "Nothing to do"'
|
|
runs:
|
|
using: 'docker'
|
|
image: 'Dockerfile'
|
|
args:
|
|
- ${{ inputs.run }}
|