forked from cloudnative-pg/charts
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Parallel test execution (#59)
- Loading branch information
1 parent
324a539
commit 2af7be2
Showing
1 changed file
with
24 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,35 @@ on: | |
- 'gh-pages' | ||
|
||
jobs: | ||
test-cluster-standalone: | ||
test-list: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tests: ${{ steps.listTests.outputs.tests }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- id: listTests | ||
run: | | ||
echo "tests=$(ls charts/paradedb/test -1 | jq -cRn '{ include: [inputs | { test: "\(.)" }]}')" >> $GITHUB_OUTPUT | ||
test: | ||
needs: test-list | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: ${{ fromJson(needs.test-list.outputs.tests) }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Cosign | ||
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3.7.0 | ||
uses: sigstore/cosign-installer@v3 | ||
|
||
# Added by ParadeDB: Authenticate to Docker Hub to avoid rate limits | ||
- name: Login to Docker Hub | ||
|
@@ -52,7 +71,7 @@ jobs: | |
helm install prometheus-crds prometheus-community/prometheus-operator-crds | ||
- name: Install Chainsaw | ||
uses: kyverno/action-install-chainsaw@f2b47b97dc889c12702113753d713f01ec268de5 # v0.2.12 | ||
uses: kyverno/[email protected] | ||
with: | ||
verify: true | ||
|
||
|
@@ -75,7 +94,7 @@ jobs: | |
# The Docker Hub tokens are required for the ParadeDB Enterprise tests | ||
- name: Run Kyverno/Chainsaw | ||
run: chainsaw test | ||
run: chainsaw test charts/paradedb/test/${{ matrix.test }} | ||
env: | ||
PARADEDB_ENTERPRISE_DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
PARADEDB_ENTERPRISE_DOCKER_PAT: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }} |