@@ -24,14 +24,10 @@ jobs:
24
24
with :
25
25
node-version : " ${{ steps.nvm.outputs.NVMRC }}"
26
26
27
- - name : Create Docker Compose Installer Script
28
- run : echo "sudo apt-get update && sudo apt-get install -y docker-compose" > install-docker-compose.sh
29
-
30
- - name : Upload Docker Compose Installer Artifact
31
- uses : actions/upload-artifact@v3
32
- with :
33
- name : docker-compose-installer
34
- path : install-docker-compose.sh
27
+ - name : Install Docker Compose
28
+ run : |
29
+ sudo apt-get update
30
+ sudo apt-get install -y docker-compose
35
31
36
32
- name : Cache Node.js modules
37
33
uses : actions/cache@v3
@@ -45,17 +41,15 @@ jobs:
45
41
46
42
- run : npm ci
47
43
48
- test-unit :
44
+ test :
49
45
needs : build
50
46
runs-on : ubuntu-latest
51
47
52
48
steps :
53
49
- uses : actions/checkout@v2
54
50
55
- - name : Download Docker Compose Installer Artifact
56
- uses : actions/download-artifact@v3
57
- with :
58
- name : docker-compose-installer
51
+ - name : Ensure Docker Compose is installed
52
+ run : docker-compose --version
59
53
60
54
- name : Cache Node.js modules
61
55
uses : actions/cache@v3
68
62
${{ runner.os }}-node-
69
63
70
64
- run : npm test
71
-
72
- test-nestjs :
73
- needs : build
74
- runs-on : ubuntu-latest
75
-
76
- steps :
77
- - uses : actions/checkout@v2
78
-
79
- - name : Download Docker Compose Installer Artifact
80
- uses : actions/download-artifact@v3
81
- with :
82
- name : docker-compose-installer
83
-
84
- - name : Cache Node.js modules
85
- uses : actions/cache@v3
86
- with :
87
- path : |
88
- ~/.npm
89
- node_modules
90
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
91
- restore-keys : |
92
- ${{ runner.os }}-node-
93
-
94
65
- run : npm run test:nestjs
95
-
96
- test-mocha :
97
- needs : build
98
- runs-on : ubuntu-latest
99
-
100
- steps :
101
- - uses : actions/checkout@v2
102
-
103
- - name : Download Docker Compose Installer Artifact
104
- uses : actions/download-artifact@v3
105
- with :
106
- name : docker-compose-installer
107
-
108
- - name : Cache Node.js modules
109
- uses : actions/cache@v3
110
- with :
111
- path : |
112
- ~/.npm
113
- node_modules
114
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
115
- restore-keys : |
116
- ${{ runner.os }}-node-
117
-
118
66
- run : npm run test:mocha
0 commit comments