Skip to content

Commit

Permalink
[ci][deps] pin capi operator version, skip e2e tests for markdown-onl…
Browse files Browse the repository at this point in the history
…y changes (#602)

* pin capi operator version

* tweak GHA workflow
  • Loading branch information
AshleyDumaine authored Dec 18, 2024
1 parent 5fc7587 commit 1c0da93
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build_test_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/e2e-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 5 additions & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)
Expand Down

0 comments on commit 1c0da93

Please sign in to comment.