Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci][deps] pin capi operator version, skip e2e tests for markdown-only changes #602

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading