Skip to content

chore: remove Get dependency #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft
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
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,17 @@ concurrency:
jobs:
library:
runs-on: macos-13
strategy:
matrix:
platform:
- iOS Simulator,name=iPhone 14 Pro Max
- macOS
- tvOS Simulator,name=Apple TV
- watchOS Simulator,name=Apple Watch Series 7 (45mm)

steps:
- uses: actions/checkout@v3
- name: Select Xcode 14.3
run: sudo xcode-select -s /Applications/Xcode_14.3.app
- name: Run tests
run: make test-library
run: PLATFORM="${{ matrix.platform }}" make test-library
15 changes: 5 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
PLATFORM_IOS = iOS Simulator,name=iPhone 14 Pro Max
PLATFORM_MACOS = macOS
PLATFORM_TVOS = tvOS Simulator,name=Apple TV
PLATFORM ?= iOS Simulator,name=iPhone 14 Pro Max

.PHONY: test-library
test-library:
for platform in "$(PLATFORM_IOS)" "$(PLATFORM_MACOS)" "$(PLATFORM_TVOS)"; do \
xcodebuild test \
-scheme PostgREST \
-destination platform="$$platform" \
-derivedDataPath .deriveddata || exit 1; \
done;
xcodebuild test \
-scheme PostgREST \
-destination platform="$(PLATFORM)"

.PHONY: format
format:
swiftformat .
swift format -i -r ./Sources ./Tests ./Package.swift

.PHONY: supabase-up
supabase-up: supabase-down
Expand Down
60 changes: 20 additions & 40 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,43 +1,23 @@
{
"object": {
"pins": [
{
"package": "Get",
"repositoryURL": "https://github.com/kean/Get",
"state": {
"branch": null,
"revision": "12830cc64f31789ae6f4352d2d51d03a25fc3741",
"version": "2.1.6"
}
},
{
"package": "GetExtensions",
"repositoryURL": "https://github.com/binaryscraping/GetExtensions",
"state": {
"branch": null,
"revision": "aa20f38721142eb6592b2c8f11179d32d7d70ae3",
"version": "1.0.0"
}
},
{
"package": "swift-snapshot-testing",
"repositoryURL": "https://github.com/pointfreeco/swift-snapshot-testing",
"state": {
"branch": null,
"revision": "506b6052384d8e97a4bb16fe8680325351c23c64",
"version": "1.14.0"
}
},
{
"package": "swift-syntax",
"repositoryURL": "https://github.com/apple/swift-syntax.git",
"state": {
"branch": null,
"revision": "74203046135342e4a4a627476dd6caf8b28fe11b",
"version": "509.0.0"
}
"pins" : [
{
"identity" : "swift-snapshot-testing",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-snapshot-testing",
"state" : {
"revision" : "506b6052384d8e97a4bb16fe8680325351c23c64",
"version" : "1.14.0"
}
]
},
"version": 1
},
{
"identity" : "swift-syntax",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "74203046135342e4a4a627476dd6caf8b28fe11b",
"version" : "509.0.0"
}
}
],
"version" : 2
}
15 changes: 5 additions & 10 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.5
// swift-tools-version:5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -16,20 +16,15 @@ let package = Package(
.library(
name: "PostgREST",
targets: ["PostgREST"]
),
)
],
dependencies: [
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.8.1"),
.package(url: "https://github.com/kean/Get", from: "2.1.4"),
.package(url: "https://github.com/binaryscraping/GetExtensions", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.8.1")
],
targets: [
.target(
name: "PostgREST",
dependencies: [
"Get",
"GetExtensions",
]
dependencies: []
),
.testTarget(
name: "PostgRESTTests",
Expand All @@ -42,7 +37,7 @@ let package = Package(
),
],
exclude: [
"__Snapshots__",
"__Snapshots__"
]
),
.testTarget(name: "PostgRESTIntegrationTests", dependencies: ["PostgREST"]),
Expand Down
5 changes: 0 additions & 5 deletions Sources/PostgREST/CountOption.swift

This file was deleted.

Loading