Skip to content

Commit

Permalink
Merge pull request #8 from alexsteinerde/update-swift-version
Browse files Browse the repository at this point in the history
Update Swift version to 5.4
  • Loading branch information
alexsteinerde authored Jan 2, 2023
2 parents f793518 + be78929 commit 28ec96c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 49 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
name: build
on: [push, pull_request]
jobs:
xenial:
container:
image: swift:xenial
tests:
runs-on: ubuntu-latest
container: swift:5.7-jammy
steps:
- uses: actions/checkout@v1
- run: apt-get -qq update && apt-get -q -y install libpq-dev libssl-dev zlib1g-dev
- run: swift test --enable-test-discovery --sanitize=thread
bionic:
container:
image: swift:bionic
- run: swift test --sanitize=thread
tests-release:
runs-on: ubuntu-latest
container: swift:5.7-jammy
steps:
- uses: actions/checkout@v1
- run: apt-get -qq update && apt-get -q -y install libpq-dev libssl-dev zlib1g-dev
- run: swift test --enable-test-discovery --sanitize=thread
bionic-release:
container:
image: swift:bionic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: apt-get -qq update && apt-get -q -y install libpq-dev libssl-dev zlib1g-dev
- run: swift build -c release
- run: swift test -c release --sanitize=thread
18 changes: 9 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.1
// swift-tools-version:5.4
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -9,10 +9,7 @@ let package = Package(
.macOS(.v10_15)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "GraphiQLVapor",
targets: ["GraphiQLVapor"]),
.library(name: "GraphiQLVapor", targets: ["GraphiQLVapor"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Expand All @@ -23,9 +20,12 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "GraphiQLVapor",
dependencies: ["Vapor"]),
.testTarget(
name: "GraphiQLVaporTests",
dependencies: ["GraphiQLVapor", "Vapor", "XCTVapor"]),
dependencies: [
.product(name: "Vapor", package: "vapor"),
]),
.testTarget(name: "GraphiQLVaporTests", dependencies: [
.target(name: "GraphiQLVapor"),
.product(name: "XCTVapor", package: "vapor"),
]),
]
)
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GraphiQLVapor
[![Language](https://img.shields.io/badge/Swift-5.1-brightgreen.svg)](http://swift.org)
[![Language](https://img.shields.io/badge/Swift-5.4-brightgreen.svg)](http://swift.org)
[![Vapor Version](https://img.shields.io/badge/Vapor-4-F6CBCA.svg)](http://vapor.codes)
[![build](https://github.com/alexsteinerde/graphiql-vapor/workflows/build/badge.svg)](https://github.com/alexsteinerde/graphiql-vapor/actions)

Expand All @@ -11,10 +11,15 @@ import PackageDescription

let package = Package(
dependencies: [
.package(url: "https://github.com/alexsteinerde/graphiql-vapor.git", from: "2.0.0"),
.package(url: "https://github.com/alexsteinerde/graphiql-vapor.git", from: "2.2.0"),
],
targets: [
.target(name: "App", dependencies: ["GraphiQLVapor"]),
.target(
name: "App",
dependencies: [
.product(name: "GraphiQLVapor", package: "graphiql-vapor"),
]
),
...
]
)
Expand Down
5 changes: 0 additions & 5 deletions Tests/GraphiQLVaporTests/GraphiQLVaporTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,4 @@ final class GraphiQLVaporTests: XCTestCase {
XCTAssertEqual(res.status, HTTPResponseStatus.ok)
}
}

static var allTests = [
("testRegistering", testRegistering),
("testRegisterOnOtherRoute", testRegisterOnOtherRoute)
]
}
9 changes: 0 additions & 9 deletions Tests/GraphiQLVaporTests/XCTestManifests.swift

This file was deleted.

7 changes: 0 additions & 7 deletions Tests/LinuxMain.swift

This file was deleted.

0 comments on commit 28ec96c

Please sign in to comment.