Skip to content

Commit 37ecf7f

Browse files
authored
Upgrade dependencies (#12)
## Description <!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. --> Updated Swift to 5.10 and improved testing workflows --------- Co-authored-by: brennobemoura <[email protected]>
1 parent 6781031 commit 37ecf7f

File tree

6 files changed

+139
-115
lines changed

6 files changed

+139
-115
lines changed

.github/workflows/code-coverage.yml

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,58 @@ on:
1414
- 'Tests/**'
1515
- '.github/workflows/code-coverage.yml'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
18-
code-coverage:
19-
uses: request-dl/.github/.github/workflows/code-coverage.yml@main
22+
third-party-tests:
23+
name: "Testing on Third Party Platforms"
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
include:
28+
- platform: "ubuntu-latest"
29+
name: "Linux"
30+
# - platform: "windows-latest"
31+
# name: "Windows"
32+
uses: request-dl/.github/.github/workflows/third-party-tests.yml@main
2033
with:
21-
package-tests: swift-openapi-request-dl-nioPackageTests
22-
target: OpenAPIRequestDL
34+
platform: ${{ matrix.platform }}
35+
name: ${{ matrix.name }}
36+
coverage-enabled: true
2337
secrets: inherit
38+
39+
apple-tests:
40+
name: "Testing on Apple Platforms"
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
include:
45+
- destination: "platform=iOS Simulator,arch=arm64,name=iPhone 16 Pro,OS=18.5"
46+
name: "iOS"
47+
- destination: "platform=iOS Simulator,arch=arm64,name=iPad (A16),OS=18.5"
48+
name: "iPadOS"
49+
- destination: "platform=watchOS Simulator,arch=arm64,name=Apple Watch Series 10 (42mm),OS=11.5"
50+
name: "watchOS"
51+
- destination: "platform=tvOS Simulator,arch=arm64,name=Apple TV 4K (3rd generation) (at 1080p),OS=18.5"
52+
name: "tvOS"
53+
- destination: "platform=visionOS Simulator,arch=arm64,name=Apple Vision Pro,OS=2.5"
54+
name: "visionOS"
55+
- destination: "platform=macOS,arch=arm64,name=My Mac"
56+
name: "macOS"
57+
- destination: "platform=macOS,arch=arm64,variant=Mac Catalyst,name=My Mac"
58+
name: "macOS Catalyst"
59+
uses: request-dl/.github/.github/workflows/apple-tests.yml@main
60+
with:
61+
package-name: "swift-openapi-request-dl-nio"
62+
destination: ${{ matrix.destination }}
63+
name: ${{ matrix.name }}
64+
coverage-enabled: true
65+
secrets: inherit
66+
67+
coverage-upload:
68+
needs: [third-party-tests, apple-tests]
69+
if: always()
70+
uses: request-dl/.github/.github/workflows/coverage-upload.yml@main
71+
secrets: inherit

.github/workflows/swift.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/swiftlint.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.swiftlint.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

Package.resolved

Lines changed: 83 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 5.10
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
@@ -15,15 +15,15 @@ let package = Package(
1515
dependencies: [
1616
.package(
1717
url: "https://github.com/request-dl/request-dl-nio.git",
18-
from: "3.0.2"
18+
from: "3.0.3"
1919
),
2020
.package(
2121
url: "https://github.com/apple/swift-openapi-runtime",
22-
from: "1.3.2"
22+
from: "1.8.2"
2323
),
2424
.package(
2525
url: "https://github.com/apple/swift-docc-plugin",
26-
from: "1.3.0"
26+
from: "1.4.5"
2727
)
2828
],
2929
targets: [

0 commit comments

Comments
 (0)