File tree 1 file changed +4
-19
lines changed 1 file changed +4
-19
lines changed Original file line number Diff line number Diff line change 10
10
build :
11
11
runs-on : macos-latest
12
12
13
- services :
14
- postgres :
15
- image : postgres:14
16
- env :
17
- POSTGRES_USER : vapor
18
- POSTGRES_PASSWORD : vapor
19
- POSTGRES_DB : vapor-comments
20
- ports :
21
- - 5432:5432
22
- options : >-
23
- --health-cmd pg_isready -U vapor
24
- --health-interval 10s
25
- --health-timeout 5s
26
- --health-retries 5
27
13
28
14
steps :
29
15
- uses : SwiftyLab/setup-swift@latest
@@ -33,12 +19,11 @@ jobs:
33
19
if : runner.os == 'macOS'
34
20
run : xcrun --toolchain ${{ env.TOOLCHAINS }} swift --version
35
21
- uses : actions/checkout@v4
36
- - name : Wait for PostgreSQL to be ready
22
+ - name : Install PostgreSQL
37
23
run : |
38
- until pg_isready -h localhost -p 5432 -U vapor; do
39
- echo "Waiting for PostgreSQL to be ready..."
40
- sleep 2
41
- done
24
+ brew install postgresql@14
25
+ brew services start postgresql@14
26
+ createdb -U $(whoami) vapor-comments
42
27
- name : Build
43
28
run : sh build.sh
44
29
- name : Run tests
You can’t perform that action at this time.
0 commit comments