mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-22 06:45:03 +01:00
Replace expressions engine (#133)
This commit is contained in:
@@ -143,6 +143,9 @@ func TestEvaluateRunContext(t *testing.T) {
|
||||
out, err := ee.evaluate(context.Background(), table.in, exprparser.DefaultStatusCheckNone)
|
||||
if table.errMesg == "" {
|
||||
assertObject.NoError(err, table.in)
|
||||
if i, ok := table.out.(int); ok {
|
||||
table.out = float64(i)
|
||||
}
|
||||
assertObject.Equal(table.out, out, table.in)
|
||||
} else {
|
||||
assertObject.Error(err, table.in)
|
||||
|
||||
@@ -5,14 +5,17 @@ on:
|
||||
inputs:
|
||||
required:
|
||||
description: a required input
|
||||
type: string
|
||||
required: true
|
||||
with_default:
|
||||
description: an input with default
|
||||
required: false
|
||||
type: string
|
||||
default: default
|
||||
with_default2:
|
||||
description: an input with default
|
||||
required: false
|
||||
type: string
|
||||
default: ${{ github.event_name }}
|
||||
boolean:
|
||||
description: an input of type boolean
|
||||
|
||||
Reference in New Issue
Block a user