Replace expressions engine (#133)

This commit is contained in:
ChristopherHX
2025-10-06 13:53:15 +02:00
committed by GitHub
parent 418c708bb0
commit 82dccc7820
40 changed files with 6876 additions and 1304 deletions

View File

@@ -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)

View File

@@ -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