File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 88 pull_request :
99 branches : [main]
1010
11- env :
12- PG_PORT : 5432
13- PG_USER : postgres
14- PG_PASSWORD : postgres
15- PG_DB : test_db
16- PG_HOST : db:5432
17-
1811# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1912jobs :
2013 backend_testing :
3730 run : cd frontend && npm install && npm run types
3831 - name : Building docker containers using docker-compose
3932 run : GO_MOD=go.mod docker compose --env-file=./config/ci.env.dev up --wait --build backend db staging_db frontend
40- - name : Wait for Go BE to configure
41- uses : juliangruber/sleep-action@v1
42- with :
43- time : 5s
4433 - name : React tests
4534 run : docker exec frontend npm test
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ services:
1818 dockerfile : ./Dockerfile.development
1919 volumes :
2020 - ' ./frontend:/app'
21+ depends_on :
22+ - backend
2123 stdin_open : true
2224 ports :
2325 - 3000:3000
Original file line number Diff line number Diff line change 3131 "scripts" : {
3232 "start" : " react-scripts start" ,
3333 "build" : " react-scripts build" ,
34- "test" : " react-scripts test" ,
34+ "test" : " CI=true react-scripts test" ,
3535 "eject" : " react-scripts eject" ,
3636 "lint" : " eslint" ,
3737 "types" : " tsc --noEmit && npm run lint" ,
You can’t perform that action at this time.
0 commit comments