Skip to content
Merged
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
11 changes: 9 additions & 2 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Validate Policies
on:
merge_group:
workflow_dispatch:
inputs:
run-e2e-tests:
description: 'Run e2e tests (only from main branch by default)'
required: false
default: false
type: boolean
pull_request:
branches: [main]
push:
Expand Down Expand Up @@ -35,15 +41,16 @@ jobs:
uses: actions/create-github-app-token@v2
# Only run e2e tests from the main branch as we need some credentials
# that we don't want to risk leaking from pullrequest opened by random contributors
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || ${{ inputs.run-e2e-tests }}
with:
app-id: ${{ secrets.ELASTIC_OBSERVABILITY_APP_ID }}
private-key: ${{ secrets.ELASTIC_OBSERVABILITY_APP_PEM }}
owner: ${{ github.repository_owner }}

- name: e2e tests
# Only run e2e tests from the main branch as we need some credentials
# that we don't want to risk leaking from pullrequest opened by random contributors
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' || ${{ inputs.run-e2e-tests }}
run: make e2e-test
env:
GITHUB_TOKEN: ${{ steps.generate_testing_token.outputs.token }}
Expand Down