Skip to content

Commit 017dc7d

Browse files
authored
Update Supported Swift Versions (#92)
1 parent 7c377d1 commit 017dc7d

File tree

3 files changed

+7
-63
lines changed

3 files changed

+7
-63
lines changed

.github/workflows/main-codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
update-main-codecov:
99
runs-on: ubuntu-latest
10-
container: swift:5.5-focal
10+
container: swift:5.6-focal
1111
steps:
1212
- name: Check out main
1313
uses: actions/checkout@v2

.github/workflows/test.yml

Lines changed: 5 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,8 @@ name: test
22
on: { pull_request: {} }
33

44
jobs:
5-
linux-all:
6-
strategy:
7-
fail-fast: false
8-
matrix:
9-
swiftver:
10-
- swift:5.2
11-
- swift:5.3
12-
- swift:5.4
13-
- swift:5.5
14-
- swiftlang/swift:nightly-main
15-
swiftos:
16-
- focal
17-
container: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }}
18-
runs-on: ubuntu-latest
19-
env:
20-
LOG_LEVEL: debug
21-
steps:
22-
- name: Check out package
23-
uses: actions/checkout@v2
24-
- name: Run tests with code coverage and Thread Sanitizer
25-
run: swift test --enable-test-discovery --sanitize=thread --enable-code-coverage
26-
- name: Submit coverage report to Codecov.io
27-
uses: vapor/[email protected]
28-
with:
29-
cc_flags: 'unittests'
30-
cc_env_vars: 'SWIFT_VERSION,SWIFT_PLATFORM,RUNNER_OS,RUNNER_ARCH'
31-
cc_fail_ci_if_error: true
32-
cc_verbose: true
33-
34-
macos-all:
35-
strategy:
36-
fail-fast: false
37-
matrix:
38-
xcode:
39-
- latest-stable
40-
- latest
41-
include:
42-
- xcode: latest-stable
43-
filter: '--skip=^AsyncKitTests.EventLoopConcurrencyTests'
44-
runs-on: macos-11
45-
env:
46-
LOG_LEVEL: debug
47-
steps:
48-
- name: Select latest available Xcode
49-
uses: maxim-lobanov/setup-xcode@v1
50-
with:
51-
xcode-version: ${{ matrix.xcode }}
52-
- name: Checkout code
53-
uses: actions/checkout@v2
54-
- name: Run tests with code coverage and Thread Sanitizer
55-
run: |
56-
swift test --enable-test-discovery ${{ matrix.filter }} --sanitize=thread --enable-code-coverage \
57-
-Xlinker -rpath \
58-
-Xlinker $(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx
59-
- name: Submit coverage report to Codecov.io
60-
uses: vapor/[email protected]
61-
with:
62-
cc_flags: 'unittests'
63-
cc_env_vars: 'MD_APPLE_SDK_ROOT,RUNNER_OS,RUNNER_ARCH'
64-
cc_fail_ci_if_error: true
65-
cc_verbose: true
5+
unit-tests:
6+
uses: vapor/ci/.github/workflows/run-unit-tests.yml@reusable-workflows
7+
with:
8+
with_coverage: true
9+
with_tsan: true

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.2
1+
// swift-tools-version:5.4
22
import PackageDescription
33

44
let package = Package(

0 commit comments

Comments
 (0)