File tree 3 files changed +30
-4
lines changed
3 files changed +30
-4
lines changed Original file line number Diff line number Diff line change
1
+ services :
2
+ app :
3
+ build : .
4
+ ports :
5
+ - 3000:3000
6
+ depends_on :
7
+ - redis
8
+ restart : on-failure
9
+ networks :
10
+ - internal-network
11
+
12
+ redis :
13
+ image : redis:7.0-alpine
14
+ networks :
15
+ - internal-network
16
+ environment :
17
+ - REDIS_PASSWORD=password
18
+ ports :
19
+ - 6379:6379
20
+
21
+ networks :
22
+ internal-network :
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ concurrency:
11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
+ env :
15
+ COMPOSE_FILE : .ci/docker-compose.yml
14
16
15
17
steps :
16
18
- name : Checkout code
19
21
- name : Use Docker Compose
20
22
run : docker-compose up -d
21
23
22
- - name : Run ESLint
23
- run : docker compose run app npm run lint
24
+ - name : Run lint check
25
+ run : docker- compose run app npm run lint
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ concurrency:
11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
+ env :
15
+ COMPOSE_FILE : .ci/docker-compose.yml
14
16
15
17
steps :
16
18
- name : Checkout code
19
21
- name : Use Docker Compose
20
22
run : docker-compose up -d
21
23
22
- - name : Run Jest tests
23
- run : docker compose run app npm run test
24
+ - name : Run tests
25
+ run : docker- compose run app npm run test
You can’t perform that action at this time.
0 commit comments