We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61b602 commit 17472d9Copy full SHA for 17472d9
.github/workflows/ci.yml
@@ -74,6 +74,15 @@ jobs:
74
with: { 'fetch-depth': 0 }
75
- name: Build release
76
run: swift build -c release --static-swift-stdlib -Xlinker -ljemalloc
77
+ - name: Test launch
78
+ run: |
79
+ # Since we're only pinging the version api endpoint, no database is needed and
80
+ # we can just copy the testing template to ensure the db env variables are set.
81
+ cp .env.testing.template .env.testing
82
+ # FIXME: change to `-c release` after testing!!!
83
+ swift run -c debug Run serve --port 8080 &
84
+ sleep 2
85
+ [ "$(curl -sL -w "%{http_code}" -o /dev/null http://localhost:8080/api/version)" == "200" ] || echo Connection failed
86
87
# test-macos:
88
# name: Test macOS
0 commit comments