Skip to content

Commit 22500f2

Browse files
committed
test création de plusieurs jobs goldbergyoni#8
1 parent 730e66d commit 22500f2

File tree

1 file changed

+47
-4
lines changed

1 file changed

+47
-4
lines changed

.github/workflows/nodejs.yml

+47-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
4646
- run: npm ci
4747

48-
tests:
48+
test-unit:
4949
needs: build
5050
runs-on: ubuntu-latest
5151

@@ -57,9 +57,6 @@ jobs:
5757
with:
5858
name: docker-compose-installer
5959

60-
- name: Install Docker Compose
61-
run: bash install-docker-compose.sh
62-
6360
- name: Cache Node.js modules
6461
uses: actions/cache@v3
6562
with:
@@ -71,5 +68,51 @@ jobs:
7168
${{ runner.os }}-node-
7269
7370
- 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+
7494
- 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+
75118
- run: npm run test:mocha

0 commit comments

Comments
 (0)