diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 6ac2274a..ac229668 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -1,4 +1,4 @@ -name: IntegrationTests +name: Integration Tests on: workflow_call: @@ -19,10 +19,6 @@ on: type: boolean description: "Boolean to enable the compilation of examples. Defaults to true." default: true - check_foundation_enabled: - type: boolean - description: "Boolean to enable the check for Foundation dependency. Defaults to true." - default: true matrix_linux_command: type: string description: "The command of the current Swift version linux matrix job to execute." @@ -64,17 +60,3 @@ jobs: - name: Web playground backend build working-directory: Examples/web-playground/backend run: swift build - - check-foundation: - name: No dependencies on Foundation - if: ${{ inputs.check_foundation_enabled }} - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Mark the workspace as safe - # https://github.com/actions/checkout/issues/766 - run: git config --global --add safe.directory ${GITHUB_WORKSPACE} - - name: Check for Foundation or ICU dependency - run: | - .github/workflows/scripts/check-link-foundation.sh diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 5c1cf092..4fedf67c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -32,7 +32,6 @@ jobs: name: "Integration tests" examples_enabled: true matrix_linux_command: "swift build" - check_foundation_enabled: true # We pass the list of examples here, but we can't pass an array as argument # Instead, we pass a String with a valid JSON array. # The workaround is mentioned here https://github.com/orgs/community/discussions/11692 @@ -41,3 +40,16 @@ jobs: swift-6-language-mode: name: Swift 6 Language Mode uses: ./.github/workflows/swift-6-language-mode.yml + + check-foundation: + name: No dependencies on Foundation + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Mark the workspace as safe + # https://github.com/actions/checkout/issues/766 + run: git config --global --add safe.directory ${GITHUB_WORKSPACE} + - name: Check for Foundation or ICU dependency + run: | + .github/workflows/scripts/check-link-foundation.sh