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
3 changes: 3 additions & 0 deletions .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
permissions:
contents: read
id-token: write

jobs:
build-and-deploy:
Expand Down
27 changes: 15 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ concurrency:
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [ main ] }
permissions:
contents: read

env:
LOG_LEVEL: info
Expand All @@ -28,7 +30,7 @@ jobs:
container: swift:noble
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with: { 'fetch-depth': 0 }
- name: API breaking changes
run: |
Expand All @@ -53,7 +55,7 @@ jobs:
MYSQL_USER: test_username
MYSQL_PASSWORD: test_password
MYSQL_DATABASE: test_database
container: swift:6.1-noble
container: swift:6.2-noble
strategy:
fail-fast: false
matrix:
Expand All @@ -64,10 +66,10 @@ jobs:
- percona:8.0
steps:
- name: Check out package
uses: actions/checkout@v4
uses: actions/checkout@v6
with: { path: 'mysql-kit' }
- name: Check out dependent
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
repository: vapor/fluent-mysql-driver
path: fluent-mysql-driver
Expand All @@ -85,15 +87,14 @@ jobs:
dbimage:
- mysql:5.7
- mysql:8.0
- mysql:9.3
- mysql:9.6
- mariadb:10.4
- mariadb:11
- percona:8.0
runner:
# List is deliberately incomplete; we want to avoid running 50 jobs on every commit
- swift:5.10-jammy
- swift:6.0-noble
- swift:6.0-jammy
- swift:6.1-noble
- swift:6.2-noble
container: ${{ matrix.runner }}
runs-on: ubuntu-latest
services:
Expand All @@ -105,8 +106,10 @@ jobs:
MYSQL_PASSWORD: test_password
MYSQL_DATABASE: test_database
steps:
- name: Install curl
run: apt-get update && apt-get install -y curl
- name: Check out package
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Run local tests with coverage and TSan
run: swift test --enable-code-coverage --sanitize=thread
- name: Submit coverage report to Codecov.io
Expand All @@ -121,10 +124,10 @@ jobs:
fail-fast: false
matrix:
include:
- macos-version: macos-14
xcode-version: latest-stable
- macos-version: macos-15
xcode-version: latest-stable
- macos-version: macos-26
xcode-version: latest-stable
runs-on: ${{ matrix.macos-version }}
steps:
- name: Select latest available Xcode
Expand All @@ -146,7 +149,7 @@ jobs:
GRANT ALL PRIVILEGES ON test_database.* TO test_username@localhost;
SQL
- name: Check out code
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Run tests with code coverage
run: swift test --enable-code-coverage
env: { MYSQL_HOSTNAME: '127.0.0.1' }
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
.package(url: "https://github.com/vapor/async-kit.git", from: "1.20.0"),
.package(url: "https://github.com/vapor/mysql-nio.git", from: "1.7.2"),
.package(url: "https://github.com/vapor/sql-kit.git", from: "3.33.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0" ..< "4.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "2.0.0" ..< "5.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.82.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.30.0"),
],
Expand Down
Loading