Skip to content

Commit 3280fe0

Browse files
extract PR Dependency Check for github-workflows into its own file (swiftlang#270)
1 parent 5eee019 commit 3280fe0

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/pull_request.yml

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

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

86
on:
97
pull_request:
10-
types: [opened, edited, reopened, labeled, unlabeled, synchronize]
8+
types: [opened, reopened, synchronize]
119

1210
jobs:
13-
github_actiion_pr_dependency_check:
14-
name: GitHub Action Dependency Check
15-
uses: ./.github/workflows/github_actions_dependencies.yml
16-
1711
tests_with_docker_embedded_swift:
1812
name: Test Embedded Swift SDKs
1913
uses: ./.github/workflows/swift_package_test.yml
20-
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
2114
with:
2215
# Wasm
2316
enable_linux_checks: false
@@ -30,7 +23,6 @@ jobs:
3023
tests_with_docker:
3124
name: Test with Docker
3225
uses: ./.github/workflows/swift_package_test.yml
33-
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
3426
with:
3527
# Linux
3628
linux_os_versions: '["jammy", "rhel-ubi9", "amazonlinux2"]'
@@ -54,7 +46,6 @@ jobs:
5446
tests_without_docker:
5547
name: Test without Docker
5648
uses: ./.github/workflows/swift_package_test.yml
57-
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
5849
with:
5950
# Skip Linux which doesn't currently support docker-less workflow
6051
enable_linux_checks: false
@@ -76,7 +67,6 @@ jobs:
7667
tests_macos:
7768
name: Test
7869
uses: ./.github/workflows/swift_package_test.yml
79-
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
8070
with:
8171
enable_linux_checks: false
8272
enable_windows_checks: false
@@ -89,7 +79,6 @@ jobs:
8979
build_tests_ios:
9080
name: Build iOS Tests
9181
uses: ./.github/workflows/swift_package_test.yml
92-
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
9382
with:
9483
enable_linux_checks: false
9584
enable_windows_checks: false
@@ -102,7 +91,6 @@ jobs:
10291
soundness:
10392
name: Soundness
10493
uses: ./.github/workflows/soundness.yml
105-
if: ${{ github.event_name == 'opened' || github.event_name == 'reopened' || github.event_name == 'synchronize' }}
10694
with:
10795
api_breakage_check_enabled: false
10896
license_header_check_project_name: "Swift.org"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PR Dependency Check
2+
3+
permissions:
4+
issues: read
5+
pull-requests: read
6+
7+
on:
8+
pull_request:
9+
types: [opened, edited, reopened, labeled, unlabeled, synchronize]
10+
11+
jobs:
12+
github_actiion_pr_dependency_check:
13+
name: GitHub Action Dependency Check
14+
uses: ./.github/workflows/github_actions_dependencies.yml

0 commit comments

Comments
 (0)