Only register suites that contain EmbeddedTestCase tests. (#632) #1157
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: Swift | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: "16.0" | |
- name: Build | |
run: swift build --build-tests --quiet | |
- name: Run tests (XCTest) | |
run: swift test --skip-build --no-parallel --disable-swift-testing | |
- name: Run tests (Swift testing) | |
run: swift test --skip-build --no-parallel --disable-xctest | |
build-windows: | |
runs-on: windows-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: compnerd/gha-setup-swift@main | |
with: | |
branch: swift-6.0.2-release | |
tag: 6.0.2-RELEASE | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: swift build --build-tests --quiet | |
- name: Run tests (XCTest) | |
run: swift test --skip-build --no-parallel --disable-swift-testing | |
- name: Run tests (Swift testing) | |
run: swift test --skip-build --no-parallel --disable-xctest | |