-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
189 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ on: | |
USE_ARTIFACTS_FILE: | ||
description: 'The base file name that need to be used by "use_artifacts" kwargs flag (systests)' | ||
required: false | ||
type: string | ||
type: string | ||
BINARY_TESTS: | ||
type: string | ||
default: '[ "scan_nsa", | ||
|
@@ -59,7 +59,7 @@ jobs: | |
# run: "echo \"is-secret-set=${{ env.CUSTOMER != '' && \n env.USERNAME != '' &&\n env.PASSWORD != '' &&\n env.CLIENT_ID != '' &&\n env.SECRET_KEY != '' &&\n env.REGISTRY_USERNAME != '' &&\n env.REGISTRY_PASSWORD != ''\n }}\" >> $GITHUB_OUTPUT\n" | ||
# "is-secret-set" validatin (and var) is commented because we add the secret validator function down here. | ||
# We commented it out because we revised the secret validation process. We want the pipeline to fail if even one of the secrets is not set. | ||
|
||
run: | | ||
env_vars=("CUSTOMER" "USERNAME" "PASSWORD" "CLIENT_ID" "SECRET_KEY" "REGISTRY_USERNAME" "REGISTRY_PASSWORD") | ||
|
@@ -79,7 +79,7 @@ jobs: | |
echo "TEST_NAMES=$input" >> $GITHUB_OUTPUT | ||
env: | ||
input: ${{ inputs.BINARY_TESTS }} | ||
|
||
|
||
run-tests: | ||
strategy: | ||
|
@@ -94,12 +94,12 @@ jobs: | |
steps: | ||
|
||
- name: Checkout systests repo | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # ratchet:actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: armosec/system-tests | ||
path: . | ||
|
||
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # ratchet:actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.8.13' | ||
cache: 'pip' | ||
|
@@ -114,12 +114,12 @@ jobs: | |
- name: Create k8s Kind Cluster | ||
id: kind-cluster-install | ||
uses: helm/kind-action@d08cf6ff1575077dee99962540d77ce91c62387d # ratchet:helm/[email protected] | ||
uses: helm/kind-action@v1 | ||
with: | ||
cluster_name: ${{ steps.uuid.outputs.RANDOM_UUID }} | ||
config: ${{ inputs.KIND_CONFIG_FILE }} | ||
|
||
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/[email protected] | ||
- uses: actions/download-artifact@v4 | ||
id: download-artifact | ||
with: | ||
name: ${{ inputs.DOWNLOAD_ARTIFACT_KEY_NAME }} | ||
|
@@ -152,7 +152,7 @@ jobs: | |
deactivate | ||
- name: Test Report | ||
uses: mikepenz/action-junit-report@6e9933f4a97f4d2b99acef4d7b97924466037882 # ratchet:mikepenz/[email protected] | ||
uses: mikepenz/action-junit-report@v5 | ||
if: always() # always run even if the previous step fails | ||
with: | ||
report_paths: '**/results_xml_format/**.xml' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.