Skip to content

Commit f9fcb2c

Browse files
committed
Tweak test
1 parent 80c61a1 commit f9fcb2c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Diff for: .github/workflows/ci.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,19 @@ jobs:
7272
- name: Checkout code
7373
uses: actions/checkout@v4
7474
with: { 'fetch-depth': 0 }
75-
# - name: Build release
76-
# run: swift build -c release --static-swift-stdlib -Xlinker -ljemalloc
77-
- name: Test launch
75+
- name: Test release
7876
run: |
7977
# Since we're only pinging the version api endpoint, no database is needed and
8078
# we can just copy the testing template to ensure the db env variables are set.
8179
cp .env.testing.template .env.testing
8280
# FIXME: change to `-c release` after testing!!!
83-
swift run -c debug Run serve --port 8080 &
84-
sleep 2
85-
bash -c '[ "$(curl -sL -w "%{http_code}" -o /dev/null http://localhost:8080/api/version)" == "200" ] || echo Connection failed'
81+
# swift build -c release --static-swift-stdlib -Xlinker -ljemalloc
82+
# sleep 10
83+
# swift run -c release Run serve --port 8080 --host 0.0.0.0 &
84+
swift build -c debug --static-swift-stdlib -Xlinker -ljemalloc
85+
sleep 10
86+
swift run -c debug Run serve --port 8080 --host 0.0.0.0 &
87+
bash -c '[ "$(curl -sL -w "%{http_code}" -o /dev/null http://localhost:8080/api/version)" == "200" ] || (echo Connection failed ; exit 1)'
8688
8789
# test-macos:
8890
# name: Test macOS

0 commit comments

Comments
 (0)