Skip to content

Commit

Permalink
fix: Change naming of regex test input to test-unit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Matovidlo committed Nov 22, 2024
1 parent d28aa60 commit 0b54d17
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: ./.github/workflows/test-unit.yml
with:
without-cache: true
test-regex: "./internal/pkg/service/stream|./internal/pkg/service/templates|./internal/pkg/service/appsproxy"
package-exception-regex: "./internal/pkg/service/stream|./internal/pkg/service/templates|./internal/pkg/service/appsproxy"

test-e2e-cli:
name: "E2E: CLI"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-service-apps-proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: ./.github/workflows/test-unit.yml
with:
without-cache: true
test-regex: "./internal/pkg/service/stream|./internal/pkg/service/templates|./internal/pkg/service/cli"
package-exception-regex: "./internal/pkg/service/stream|./internal/pkg/service/templates|./internal/pkg/service/cli"
test-k8s-service-apps-proxy:
name: "K8S: Apps Proxy"
secrets: inherit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-service-stream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: ./.github/workflows/test-unit.yml
with:
without-cache: true
test-regex: "./internal/pkg/service/appsproxy|./internal/pkg/service/templates|./internal/pkg/service/cli"
package-exception-regex: "./internal/pkg/service/appsproxy|./internal/pkg/service/templates|./internal/pkg/service/cli"
test-e2e-service-stream:
name: "E2E: Stream"
secrets: inherit
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-service-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: ./.github/workflows/test-unit.yml
with:
without-cache: true
test-regex: "./internal/pkg/service/appsproxy|./internal/pkg/service/stream|./internal/pkg/service/cli"
package-exception-regex: "./internal/pkg/service/appsproxy|./internal/pkg/service/stream|./internal/pkg/service/cli"
test-e2e-service-templates:
name: "E2E: Templates"
secrets: inherit
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
type: boolean
default: false
required: false
test-regex:
package-exception-regex:
type: string
default: ""
required: false
Expand Down Expand Up @@ -96,8 +96,8 @@ jobs:
fi
# Prevent testing unnecessary code for particular release
if [ -n "${{ inputs.test-regex }}" ]; then
export TEST_EXCEPT="go list ./internal/pkg/... | grep -vE '${{ inputs.test-regex }}'"
if [ -n "${{ inputs.package-exception-regex }}" ]; then
export TEST_EXCEPT="go list ./internal/pkg/... | grep -vE '${{ inputs.package-exception-regex }}'"
fi
# ENVs can affect test caching, make sure to only run tests with expected ENVs
Expand Down

0 comments on commit 0b54d17

Please sign in to comment.