Skip to content

Commit bb80526

Browse files
committed
move foundation test to main workflow
1 parent c8e3357 commit bb80526

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: IntegrationTests
1+
name: Integration Tests
22

33
on:
44
workflow_call:
@@ -19,10 +19,6 @@ on:
1919
type: boolean
2020
description: "Boolean to enable the compilation of examples. Defaults to true."
2121
default: true
22-
check_foundation_enabled:
23-
type: boolean
24-
description: "Boolean to enable the check for Foundation dependency. Defaults to true."
25-
default: true
2622
matrix_linux_command:
2723
type: string
2824
description: "The command of the current Swift version linux matrix job to execute."
@@ -64,17 +60,3 @@ jobs:
6460
- name: Web playground backend build
6561
working-directory: Examples/web-playground/backend
6662
run: swift build
67-
68-
check-foundation:
69-
name: No dependencies on Foundation
70-
if: ${{ inputs.check_foundation_enabled }}
71-
runs-on: ubuntu-latest
72-
steps:
73-
- name: Checkout repository
74-
uses: actions/checkout@v4
75-
- name: Mark the workspace as safe
76-
# https://github.com/actions/checkout/issues/766
77-
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
78-
- name: Check for Foundation or ICU dependency
79-
run: |
80-
.github/workflows/scripts/check-link-foundation.sh

.github/workflows/pull_request.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
name: "Integration tests"
3333
examples_enabled: true
3434
matrix_linux_command: "swift build"
35-
check_foundation_enabled: true
3635
# We pass the list of examples here, but we can't pass an array as argument
3736
# Instead, we pass a String with a valid JSON array.
3837
# The workaround is mentioned here https://github.com/orgs/community/discussions/11692
@@ -41,3 +40,16 @@ jobs:
4140
swift-6-language-mode:
4241
name: Swift 6 Language Mode
4342
uses: ./.github/workflows/swift-6-language-mode.yml
43+
44+
check-foundation:
45+
name: No dependencies on Foundation
46+
runs-on: ubuntu-latest
47+
steps:
48+
- name: Checkout repository
49+
uses: actions/checkout@v4
50+
- name: Mark the workspace as safe
51+
# https://github.com/actions/checkout/issues/766
52+
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
53+
- name: Check for Foundation or ICU dependency
54+
run: |
55+
.github/workflows/scripts/check-link-foundation.sh

0 commit comments

Comments
 (0)