mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #908] [MERGED] Refactor expression evaluator to use parser from actionlint package #1678
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1678
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/908
Author: @ZauberNerd
Created: 11/29/2021
Status: ✅ Merged
Merged: 1/21/2022
Merged by: @cplee
Base:
master← Head:exprparser📝 Commits (5)
f015e81feat: implement expression evaluator78d834bfeat: integrate exprparser into act8f9b9c8Escape { and }, do not fail on missing properties6013c54Fix empty inputs context73cf7e3fix: contains() comparison for complex values📊 Changes
12 files changed (+2028 additions, -689 deletions)
View changed files
📝
go.mod(+1 -4)📝
go.sum(+18 -7)➕
pkg/exprparser/functions.go(+277 -0)➕
pkg/exprparser/functions_test.go(+245 -0)➕
pkg/exprparser/interpreter.go(+576 -0)➕
pkg/exprparser/interpreter_test.go(+581 -0)➕
pkg/exprparser/testdata/for-hashing-1.txt(+1 -0)➕
pkg/exprparser/testdata/for-hashing-2.txt(+1 -0)📝
pkg/runner/expression.go(+186 -570)📝
pkg/runner/expression_test.go(+124 -69)📝
pkg/runner/run_context.go(+2 -27)📝
pkg/runner/run_context_test.go(+16 -12)📄 Description
This is an early draft to showcase the general direction we're going with this change.We will of course rebase the commits, so that we can create separate PRs for the preparation-changes (refactoring of contexts, etc).Also there's still a few TODO comments that we have to resolve before this PR is ready to merge.Anyways, feedback is welcome :)Next steps:
toStringto be able to print all typesacttests to pass with theexprparserpackage🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.