Skip to content

Commit b88cd06

Browse files
committed
Merge the two pull_request.yaml into a single file
1 parent 71643ce commit b88cd06

2 files changed

Lines changed: 13 additions & 15 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@ name: Pull request
22

33
permissions:
44
contents: read
5+
issues: read
6+
pull-requests: read
57

68
on:
79
pull_request:
8-
types: [opened, reopened, synchronize]
10+
types: [opened, edited, reopened, labeled, unlabeled, synchronize]
911

1012
jobs:
13+
github_actiion_pr_dependency_check:
14+
name: GitHub Action Dependency Check
15+
uses: ./.github/workflows/github_actions_dependencies.yml
16+
1117
tests_with_docker_embedded_swift:
1218
name: Test Embedded Swift SDKs
1319
uses: ./.github/workflows/swift_package_test.yml
20+
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
1421
with:
1522
# Wasm
1623
enable_linux_checks: false
@@ -23,6 +30,7 @@ jobs:
2330
tests_with_docker:
2431
name: Test with Docker
2532
uses: ./.github/workflows/swift_package_test.yml
33+
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
2634
with:
2735
# Linux
2836
linux_os_versions: '["jammy", "rhel-ubi9", "amazonlinux2"]'
@@ -46,6 +54,7 @@ jobs:
4654
tests_without_docker:
4755
name: Test without Docker
4856
uses: ./.github/workflows/swift_package_test.yml
57+
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
4958
with:
5059
# Skip Linux which doesn't currently support docker-less workflow
5160
enable_linux_checks: false
@@ -65,6 +74,7 @@ jobs:
6574
tests_macos:
6675
name: Test
6776
uses: ./.github/workflows/swift_package_test.yml
77+
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
6878
with:
6979
enable_linux_checks: false
7080
enable_windows_checks: false
@@ -77,6 +87,7 @@ jobs:
7787
build_tests_ios:
7888
name: Build iOS Tests
7989
uses: ./.github/workflows/swift_package_test.yml
90+
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
8091
with:
8192
enable_linux_checks: false
8293
enable_windows_checks: false
@@ -89,6 +100,7 @@ jobs:
89100
soundness:
90101
name: Soundness
91102
uses: ./.github/workflows/soundness.yml
103+
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
92104
with:
93105
api_breakage_check_enabled: false
94106
license_header_check_project_name: "Swift.org"

.github/workflows/pull_request_2.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)