Skip to content

Commit d99f9fa

Browse files
authored
Merge pull request #183 from CleverCloud/separate-ci-build
2 parents e39682d + 2ab298e commit d99f9fa

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ on:
66
pull_request:
77
branches:
88
- master
9+
910
jobs:
10-
test:
11+
code-quality:
1112
runs-on: ubuntu-latest
1213

1314
steps:
@@ -33,10 +34,42 @@ jobs:
3334
- name: '[Code quality] Check format'
3435
run: npm run format:check
3536

37+
tests:
38+
runs-on: ubuntu-latest
39+
40+
steps:
41+
- name: '[Prepare] Checkout'
42+
uses: actions/checkout@v4
43+
with:
44+
fetch-depth: 0
45+
- name: '[Prepare] Setup Node.js'
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version-file: 'package.json'
49+
cache: 'npm'
50+
- name: '[Prepare] Install dependencies'
51+
run: npm ci
52+
3653
- name: '[Unit tests] Browser tests'
3754
run: npm run test:unit:browser
3855
- name: '[Unit tests] Node tests'
3956
run: npm run test:unit:node
4057

58+
build:
59+
runs-on: ubuntu-latest
60+
61+
steps:
62+
- name: '[Prepare] Checkout'
63+
uses: actions/checkout@v4
64+
with:
65+
fetch-depth: 0
66+
- name: '[Prepare] Setup Node.js'
67+
uses: actions/setup-node@v4
68+
with:
69+
node-version-file: 'package.json'
70+
cache: 'npm'
71+
- name: '[Prepare] Install dependencies'
72+
run: npm ci
73+
4174
- name: '[Build]'
4275
run: npm run build

0 commit comments

Comments
 (0)