fix(ci): fix failure caused by swift-syntax prebuilts #42
This file contains hidden or 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
| name: URLSession extension | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'Package.*' | |
| - 'Sources/URLSessionExtension/**.swift' | |
| - 'Tests/URLSessionExtensionTests/**.swift' | |
| - '.github/workflows/URLSessionExtension.yml' | |
| - '.swiftpm/xcode/xcshareddata/xcschemes/URLSessionExtensionTests.xcscheme' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - 'Package.*' | |
| - 'Sources/URLSessionExtension/**.swift' | |
| - 'Tests/URLSessionExtensionTests/**.swift' | |
| - '.github/workflows/URLSessionExtension.yml' | |
| - '.swiftpm/xcode/xcshareddata/xcschemes/URLSessionExtensionTests.xcscheme' | |
| workflow_call: | |
| workflow_dispatch: | |
| concurrency: | |
| # Limit concurrency to 1 for PRs. 'main' concurrency isn't limited. | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: macOS-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - platform: macOS | |
| build: swift build --target URLSessionExtensionTests | |
| test: swift test --filter URLSessionExtensionTests | |
| - platform: iOS | |
| build: xcodebuild build -scheme URLSessionExtensionTests -destination 'platform=iOS Simulator,name=iPhone 17' | |
| test: xcodebuild test -scheme URLSessionExtensionTests -destination 'platform=iOS Simulator,name=iPhone 17' | |
| - platform: watchOS | |
| build: xcodebuild build -scheme URLSessionExtensionTests -destination 'platform=watchOS Simulator,name=Apple Watch SE 3 (40mm)' | |
| test: xcodebuild test -scheme URLSessionExtensionTests -destination 'platform=watchOS Simulator,name=Apple Watch SE 3 (40mm)' | |
| - platform: tvOS | |
| build: xcodebuild build -scheme URLSessionExtensionTests -destination 'platform=tvOS Simulator,name=Apple TV' | |
| test: xcodebuild test -scheme URLSessionExtensionTests -destination 'platform=tvOS Simulator,name=Apple TV' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: List simulators | |
| run: xcrun simctl list | |
| - name: Build | |
| run: ${{ matrix.build }} | |
| - name: Run tests on ${{ matrix.platform }} | |
| run: ${{ matrix.test }} |