Skip to content

Revert "CLOUDP-304211: Only accept pull_request_target with safe-to-t… #2213

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

Merged
merged 1 commit into from
Mar 21, 2025
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
30 changes: 29 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,56 @@ on:
- 'main'
paths-ignore:
- 'docs/**'
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft, labeled, unlabeled]
branches:
- '**'
paths-ignore:
- 'docs/**'
merge_group:
workflow_dispatch:
workflow_call:

concurrency:
group: test-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true

jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
# Contributions do NOT run any testing by default, a label is needed to allow testing
if: |
github.event.pull_request.base.repo.full_name == github.event.pull_request.head.repo.full_name ||
contains(github.event.pull_request.labels.*.name, 'safe-to-test') ||
contains(github.event.pull_request.labels.*.name, 'cloud-tests') ||
contains(github.event.pull_request.labels.*.name, 'retest')
steps:
- name: allowed message
run: echo "Allowed to run tests"

lint:
needs:
- run-tests
uses: ./.github/workflows/lint.yaml

validate-manifests:
needs:
- run-tests
uses: ./.github/workflows/validate-manifests.yml

unit-tests:
needs:
- run-tests
uses: ./.github/workflows/test-unit.yml

check-licenses:
needs:
- run-tests
uses: ./.github/workflows/check-licenses.yml

cloud-tests-filter:
needs:
- run-tests
uses: ./.github/workflows/cloud-tests-filter.yml

cloud-tests:
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/trigger.yml

This file was deleted.

Loading