Skip to content

Commit

Permalink
Reduce the duplication across action workflows.
Browse files Browse the repository at this point in the history
I noticed that the main functional difference here was which script was being invoked, so I just made this a dimension of the matrix.

Signed-off-by: Matt Moore <mattmoor@chainguard.dev>
  • Loading branch information
mattmoor committed Aug 13, 2022
1 parent c0da246 commit b4e88fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 197 deletions.
97 changes: 0 additions & 97 deletions .github/workflows/kind-cluster-image-policy-scaling.yaml

This file was deleted.

99 changes: 0 additions & 99 deletions .github/workflows/kind-cluster-image-policy-with-attestations.yaml

This file was deleted.

7 changes: 6 additions & 1 deletion .github/workflows/kind-cluster-image-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
- v1.23.x
- v1.24.x

script:
- cluster_image_policy
- cluster_image_policy_with_attestations
- cluster_with_scalable

env:
KO_DOCKER_REPO: "registry.local:5000/policy-controller"
SCAFFOLDING_RELEASE_VERSION: "v0.4.3"
Expand Down Expand Up @@ -90,7 +95,7 @@ jobs:
- name: Run Cluster Image Policy Tests
timeout-minutes: 15
run: |
./test/e2e_test_cluster_image_policy.sh
./test/e2e_test_${{ matrix.script }}.sh
- name: Collect diagnostics
if: ${{ failure() }}
Expand Down

0 comments on commit b4e88fb

Please sign in to comment.