Skip to content

Commit d798cf9

Browse files
committed
basic swift test
1 parent 80d3289 commit d798cf9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ jobs:
3232
uname -a
3333
swift --version
3434
35+
- name: Basic test build
36+
run: |
37+
mkdir test
38+
cd test
39+
swift package init --type executable
40+
swift build --static-swift-stdlib
41+
3542
- name: Push something
3643
run: |
3744
swift run containertool --repository localhost:5000/vapor Package.swift --from swift:slim

Examples/HelloWorldVapor/Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ let package = Package(
2020
name: "hello-world",
2121
platforms: [.macOS(.v13)],
2222
dependencies: [
23-
.package(url: "https://github.com/vapor/vapor", .upToNextMajor(from: "4.102.0")), .package(path: "../.."),
23+
.package(url: "https://github.com/vapor/vapor", .upToNextMajor(from: "4.102.0")),
24+
.package(url: "https://github.com/apple/swift-container-plugin", from: "0.2.0"),
2425
],
2526
targets: [.executableTarget(name: "hello-world", dependencies: [.product(name: "Vapor", package: "vapor")])]
2627
)

0 commit comments

Comments
 (0)