File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 60
60
needs : lint-build
61
61
steps :
62
62
- uses : actions/checkout@v3
63
- - name : Build the docker-compose stack
64
- env :
65
- PG_USER : ci_db_user
66
- PG_PASS : ci_db_pass
67
- run : docker-compose -f docker/docker-compose-ci.yml up -d
68
- - name : Check running containers
69
- run : docker ps
70
63
- uses : actions/setup-node@v3
71
64
with :
72
65
node-version : 18
90
83
with :
91
84
key : nyc-postgres-${{ github.sha }}
92
85
path : ${{ github.workspace }}/.nyc_output
86
+ services :
87
+ redis :
88
+ image : redis:alpine
89
+ ports :
90
+ - 6379:6379
91
+ options : >-
92
+ --health-cmd "redis-cli ping"
93
+ --health-interval 10s
94
+ --health-timeout 5s
95
+ --health-retries 5
96
+ postgres :
97
+ image : postgres:alpine
98
+ ports :
99
+ - 5432:5432
100
+ options : >-
101
+ --health-cmd pg_isready
102
+ --health-interval 10s
103
+ --health-timeout 5s
104
+ --health-retries 5
105
+ env :
106
+ POSTGRES_USER : ci_db_user
107
+ POSTGRES_PASSWORD : ci_db_pass
93
108
codecov :
94
109
needs : [test-sqlite, test-postgres]
95
110
name : Run Codecov
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ services:
4
4
container_name : database-co
5
5
image : postgres:alpine
6
6
environment :
7
- - POSTGRES_USER=${PG_USER}
8
- - POSTGRES_PASSWORD=${PG_PASS}
7
+ - POSTGRES_USER=ci_db_user
8
+ - POSTGRES_PASSWORD=ci_db_pass
9
9
ports :
10
10
- 5432:5432
11
11
redis :
You can’t perform that action at this time.
0 commit comments