File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -72,17 +72,19 @@ jobs:
72
72
- name : Checkout code
73
73
uses : actions/checkout@v4
74
74
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
78
76
run : |
79
77
# Since we're only pinging the version api endpoint, no database is needed and
80
78
# we can just copy the testing template to ensure the db env variables are set.
81
79
cp .env.testing.template .env.testing
82
80
# 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)'
86
88
87
89
# test-macos:
88
90
# name: Test macOS
You can’t perform that action at this time.
0 commit comments