File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -26,32 +26,35 @@ jobs:
2626
2727 services :
2828 postgres :
29- image : postgres
29+ image : postgres:14
3030 env :
3131 POSTGRES_USER : codex
3232 POSTGRES_DB : notes
3333 POSTGRES_PASSWORD : postgres
34- # ports:
35- # - 127.0.0.1:5432:5432
34+ ports :
35+ - 127.0.0.1:5432:5432
3636 options : >-
3737 --health-cmd pg_isready
3838 --health-interval 10s
3939 --health-timeout 5s
4040 --health-retries 5
41- # volumes:
42- # - ./database:/var/lib/postgresql/data
41+ volumes :
42+ - ./database:/var/lib/postgresql/data
4343
4444 steps :
45- - name : Checkout Repository
46- uses : actions/checkout@v4
47- with :
48- ref : ${{ matrix.branch }}
4945 - name : Wait for PostgreSQL
5046 uses : jakejarvis/wait-action@master
5147 with :
5248 time : ' 20s'
49+
5350 - name : Make runner the owner of database folder
5451 run : sudo chown -R $USER database
52+
53+ - name : Checkout Repository
54+ uses : actions/checkout@v4
55+ with :
56+ ref : ${{ matrix.branch }}
57+
5558 - name : Setup node
5659 uses : actions/setup-node@v3
5760 with :
You can’t perform that action at this time.
0 commit comments