Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
container: swift:noble
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
with: { 'fetch-depth': 0 }
- name: API breaking changes
run: |
Expand All @@ -44,9 +44,9 @@ jobs:
dbimage:
- mysql:5.7
- mysql:8.3
- mysql:9.2
- mariadb:10.4
- mariadb:11
- mysql:9.4
- mariadb:10.6
- mariadb:12
- percona:8.0
runner:
# List is deliberately incomplete; we want to avoid running 50 jobs on every commit
Expand All @@ -71,10 +71,12 @@ jobs:
MYSQL_PASSWORD: test_password
MYSQL_DATABASE: test_database
steps:
- name: Ensure curl is available
run: apt-get update -y && apt-get install -y curl
- name: Check out package
uses: actions/checkout@v4
- name: Run local tests with coverage and TSan
run: swift test --enable-code-coverage --sanitize=thread
uses: actions/checkout@v5
- name: Run local tests with coverage
run: swift test --enable-code-coverage
- name: Submit coverage report to Codecov.io
uses: vapor/[email protected]
with:
Expand Down Expand Up @@ -109,9 +111,9 @@ jobs:
CREATE DATABASE test_database_b; GRANT ALL PRIVILEGES ON test_database_b.* TO test_username@localhost;
SQL
- name: Check out code
uses: actions/checkout@v4
- name: Run tests with Thread Sanitizer
run: swift test --sanitize=thread
uses: actions/checkout@v5
- name: Run tests
run: swift test
env:
MYSQL_HOSTNAME_A: '127.0.0.1'
MYSQL_HOSTNAME_B: '127.0.0.1'
Expand Down
9 changes: 6 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ let package = Package(
.library(name: "FluentMySQLDriver", targets: ["FluentMySQLDriver"]),
],
dependencies: [
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.51.0"),
.package(url: "https://github.com/vapor/mysql-kit.git", from: "4.9.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.6.3"),
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.52.2"),
.package(url: "https://github.com/vapor/mysql-kit.git", from: "4.10.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.6.4"),
.package(url: "https://github.com/vapor/async-kit.git", from: "1.21.0"),
],
targets: [
.target(
Expand All @@ -25,6 +26,7 @@ let package = Package(
.product(name: "FluentSQL", package: "fluent-kit"),
.product(name: "Logging", package: "swift-log"),
.product(name: "MySQLKit", package: "mysql-kit"),
.product(name: "AsyncKit", package: "async-kit"),
],
swiftSettings: swiftSettings
),
Expand All @@ -41,6 +43,7 @@ let package = Package(

var swiftSettings: [SwiftSetting] { [
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("MemberImportVisibility"),
.enableUpcomingFeature("ConciseMagicFile"),
.enableUpcomingFeature("ForwardTrailingClosures"),
.enableUpcomingFeature("DisableOutwardActorInference"),
Expand Down
Loading
Loading