mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #412] [MERGED] envs in if: - take 2 #1438
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#1438
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/412
Author: @torbjornvatn
Created: 11/9/2020
Status: ✅ Merged
Merged: 11/12/2020
Merged by: @cplee
Base:
master← Head:if_env_take2📝 Commits (8)
fbcf06eTest more if env variants3988f0bThe correct negation syntax is !=001a926Merge upstream/master into if_env_take23c4e5faMerge upstream/master into if_env_take2c1ced5eMake the Interpolate function support negated booleans from envsa1e6239Move assert := a.New(t) into t.Runb512f9eMerge upstream/master into if_env_take276f50afRemove a stray logrus import📊 Changes
5 files changed (+107 additions, -33 deletions)
View changed files
📝
go.mod(+1 -1)📝
pkg/runner/expression.go(+18 -12)📝
pkg/runner/expression_test.go(+16 -11)📝
pkg/runner/run_context.go(+50 -4)📝
pkg/runner/run_context_test.go(+22 -5)📄 Description
I discovered that table based tests must have define
assert := a.New(t)inside thet.Runinternal func.If not, the assert wasn't actually asserting correctly 🙈
This lead to the discovery of some test cases that wasn't actually working.
I had to make several changes to the EvalBool function support all the permutations of negations, envs and interpolations
Fixes #387
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.