Skip to content

Commit a522684

Browse files
committed
test création de plusieurs jobs goldbergyoni#9
1 parent 22500f2 commit a522684

File tree

1 file changed

+7
-59
lines changed

1 file changed

+7
-59
lines changed

.github/workflows/nodejs.yml

+7-59
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ jobs:
2424
with:
2525
node-version: "${{ steps.nvm.outputs.NVMRC }}"
2626

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
3531
3632
- name: Cache Node.js modules
3733
uses: actions/cache@v3
@@ -45,17 +41,15 @@ jobs:
4541
4642
- run: npm ci
4743

48-
test-unit:
44+
test:
4945
needs: build
5046
runs-on: ubuntu-latest
5147

5248
steps:
5349
- uses: actions/checkout@v2
5450

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
5953

6054
- name: Cache Node.js modules
6155
uses: actions/cache@v3
@@ -68,51 +62,5 @@ jobs:
6862
${{ runner.os }}-node-
6963
7064
- 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-
9465
- 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-
11866
- run: npm run test:mocha

0 commit comments

Comments
 (0)