Skip to content

envs in if: - take 2#412

Merged
cplee merged 8 commits intonektos:masterfrom
unacast:if_env_take2
Nov 12, 2020
Merged

envs in if: - take 2#412
cplee merged 8 commits intonektos:masterfrom
unacast:if_env_take2

Conversation

@torbjornvatn
Copy link
Copy Markdown
Contributor

@torbjornvatn torbjornvatn commented Nov 9, 2020

I discovered that table based tests must have define assert := a.New(t) inside the t.Run internal 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

@torbjornvatn torbjornvatn marked this pull request as ready for review November 9, 2020 20:44
@torbjornvatn torbjornvatn requested a review from cplee as a code owner November 9, 2020 20:44
Copy link
Copy Markdown
Contributor

@cplee cplee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! one change requested...

Comment thread pkg/runner/expression.go Outdated
"encoding/hex"
"encoding/json"
"fmt"
"github.com/opencontainers/runc/Godeps/_workspace/src/github.com/Sirupsen/logrus"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be removed?

@torbjornvatn
Copy link
Copy Markdown
Contributor Author

@cplee the stray logrus import is removed now.

@cplee cplee merged commit 3f4998a into nektos:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align "if: ${{ always() }}" step behaviour to GH

2 participants