diff --git a/.github/workflows/build_test_ci.yml b/.github/workflows/build_test_ci.yml index 4c2a1177..da4d891c 100644 --- a/.github/workflows/build_test_ci.yml +++ b/.github/workflows/build_test_ci.yml @@ -107,7 +107,6 @@ jobs: include: - flavor: ${{ github.ref == 'refs/heads/main' && 'all' || 'quick' }} uses: ./.github/workflows/e2e-test.yaml - if: ${{contains(fromJSON(needs.changes.outputs.paths), 'src')}} secrets: inherit with: e2e-selector: ${{ matrix.flavor }} diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index a15f86b2..29be8a16 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -46,8 +46,29 @@ concurrency: cancel-in-progress: true jobs: + changes: + runs-on: ubuntu-latest + outputs: + # Expose matched filters as job 'src' output variable + paths: ${{ steps.filter.outputs.changes }} + steps: + - uses: actions/checkout@v4 + - name: Harden Runner + uses: step-security/harden-runner@v2 + with: + disable-sudo: true + egress-policy: block + allowed-endpoints: > + api.github.com:443 + github.com:443 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: .github/filters.yml e2e-test: + needs: changes name: ${{ format('{0}-e2e-tests', inputs.e2e-selector) }} + if: ${{contains(fromJSON(needs.changes.outputs.paths), 'src')}} runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.github_token }} diff --git a/Tiltfile b/Tiltfile index 6d628c71..88193060 100644 --- a/Tiltfile +++ b/Tiltfile @@ -28,7 +28,11 @@ helm_resource( "capi-operator", "capi-operator-repo/cluster-api-operator", namespace="capi-operator-system", - flags=["--create-namespace", "--wait"], + flags=[ + "--create-namespace", + "--wait", + "--version=0.14.0", + ], resource_deps=["capi-operator-repo", "cert-manager"], labels=["CAPI"], )