forked from spiffe/spiffe-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add integration test matrix" (#7)
- Loading branch information
Showing
8 changed files
with
8 additions
and
118 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -89,51 +89,19 @@ jobs: | |
- name: Run clean check | ||
run: make git-clean-check | ||
|
||
build-matrix: | ||
name: Build matrix | ||
runs-on: ubuntu-22.04 | ||
|
||
needs: [lint] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- id: set-matrix | ||
name: Collect all tests | ||
run: | | ||
tests="$(find .github/tests -maxdepth 1 -type f -name '*.sh' -exec basename {} \; | sort | uniq)" | ||
tests_json="$(echo "$tests" | jq -c --slurp --raw-input 'split("\n") | map(select(. != ""))')" | ||
echo "tests=$tests_json" >> $GITHUB_OUTPUT | ||
echo "Collected tests: $tests_json" | ||
outputs: | ||
tests: ${{ steps.set-matrix.outputs.tests }} | ||
|
||
|
||
integration-tests: | ||
runs-on: ubuntu-22.04 | ||
needs: [build-matrix] | ||
permissions: | ||
contents: read | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build containers | ||
run: ./build.sh | ||
shell: bash | ||
working-directory: ./it | ||
- name: Run tests | ||
run: | | ||
tests_array="$(echo '${{ needs.build-matrix.outputs.tests }}' | jq -r '.[]')" | ||
echo "Tests array: $tests_array" | ||
# Convert the JSON string to an array using jq | ||
for test in $tests_array; do | ||
echo "Running test: $test" | ||
bash "${test}" | ||
# Execute your test command or script for each test | ||
done | ||
working-directory: ./.github/tests | ||
- name: Run integration tests | ||
run: ./integration_test.sh | ||
shell: bash | ||
working-directory: ./it | ||
|
||
build: | ||
name: build (linux) | ||
|
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ rpm/*.rpm | |
/.build | ||
*.swp | ||
*.swo | ||
bootstrap.crt | ||
bootstrap.crt |
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