Skip to content

Commit d4cc521

Browse files
committed
build
1 parent b7d4b53 commit d4cc521

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,17 @@ jobs:
3131
run: |
3232
swift run containertool --repository localhost:5000/vapor Package.swift --from swift:slim
3333
34+
- name: Build the example
35+
run: |
36+
cd Examples/HelloWorldHummingbird
37+
swift package --allow-network-connections all \
38+
build-container-image \
39+
--repository localhost:5000/hummingbird \
40+
--from swift:slim
41+
3442
- name: Run the example
3543
run: |
36-
docker run -d -p 8080:8080 localhost:5000/vapor
44+
docker run -d -p 8080:8080 localhost:5000/hummingbird
3745
3846
- name: Check that the service is running
3947
run: |

Examples/HelloWorldHummingbird/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ let package = Package(
2121
platforms: [.macOS(.v14)],
2222
dependencies: [
2323
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.1.0"),
24-
.package(url: "https://github.com/apple/swift-container-plugin", from: "0.2.0"),
24+
.package(path: "../.."),
2525
],
2626
targets: [
2727
.executableTarget(name: "hello-world", dependencies: [.product(name: "Hummingbird", package: "hummingbird")])

0 commit comments

Comments
 (0)