mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
ci: Add dispatch test workflow
This commit is contained in:
1 file changed
+57
@@ -0,0 +1,57 @@
|
|||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
logLevel:
|
||||||
|
description: 'Log Level'
|
||||||
|
required: true
|
||||||
|
default: 'warning'
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- info
|
||||||
|
- warning
|
||||||
|
- debug
|
||||||
|
tags:
|
||||||
|
description: 'Test scenario tags'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
boolean_default_true:
|
||||||
|
description: 'Test scenario tags'
|
||||||
|
required: true
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
boolean_default_false:
|
||||||
|
description: 'Test scenario tags'
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
number1_default:
|
||||||
|
description: 'Number w. default'
|
||||||
|
default: '100'
|
||||||
|
type: number
|
||||||
|
number2:
|
||||||
|
description: 'Number w/o. default'
|
||||||
|
type: number
|
||||||
|
string1_default:
|
||||||
|
description: 'String w. default'
|
||||||
|
default: 'Hello world'
|
||||||
|
type: string
|
||||||
|
string2:
|
||||||
|
description: 'String w/o. default'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: code.forgejo.org/oci/debian:trixie
|
||||||
|
options: "--volume /srv/example:/srv/example"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: save and display context
|
||||||
|
run: |
|
||||||
|
d=/srv/example/workflow-dispatch/contexts/$FORGEJO_EVENT_NAME
|
||||||
|
mkdir -p $d
|
||||||
|
tee $d/github <<'EOF'
|
||||||
|
${{ toJSON(github) }}
|
||||||
|
EOF
|
||||||
Reference in new issue
Block a user