Skip to content

Commit 593f7fb

Browse files
authored
Merge pull request #2 from Nico385412/patch-1
Update ci.yml
2 parents 32b1347 + b973c39 commit 593f7fb

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
cache: "npm"
2020

2121
- name: Install dependencies
22-
run: npm install
22+
run: npm ci
2323

2424
- name: Run lint
2525
run: npm run lint
@@ -37,7 +37,7 @@ jobs:
3737
cache: "npm"
3838

3939
- name: Install dependencies
40-
run: npm install
40+
run: npm ci
4141

4242
- name: Verify typescript types
4343
run: npm run typing-check
@@ -55,7 +55,7 @@ jobs:
5555
cache: "npm"
5656

5757
- name: Install dependencies
58-
run: npm install
58+
run: npm ci
5959

6060
- name: Run code coverage
6161
run: npm run coverage

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ lint:
7272
cache: "npm"
7373

7474
- name: Install dependencies
75-
run: npm install
75+
run: npm ci
7676

7777
- name: Run lint
7878
run: npm run lint
@@ -128,7 +128,7 @@ verify-typescript-types:
128128
cache: "npm"
129129
130130
- name: Install dependencies
131-
run: npm install
131+
run: npm ci
132132
133133
- name: Verify typescript types
134134
run: npm run typing-check
@@ -138,7 +138,7 @@ verify-typescript-types:
138138

139139
- `actions/setup-node@v4`: This action sets up the Node.js environment, including caching npm dependencies to speed up future runs.
140140

141-
- `npm install`: This installs the project's dependencies.
141+
- `npm ci`: This installs the project's dependencies from the package-lock.
142142

143143
- `npm run typing-check`: This runs the type-checking script to ensure there are no TypeScript errors in the code.
144144

@@ -186,7 +186,7 @@ code-coverage:
186186
cache: "npm"
187187
188188
- name: Install dependencies
189-
run: npm install
189+
run: npm ci
190190
191191
- name: Run code coverage
192192
run: npm run coverage
@@ -200,7 +200,7 @@ code-coverage:
200200

201201
- `actions/setup-node@v4`: This action sets up the Node.js environment, including caching npm dependencies to speed up future runs.
202202

203-
- `npm install`: This installs the project's dependencies.
203+
- `npm ci`: This installs the project's dependencies from the package-lock.
204204

205205
- `npm run coverage`: This command runs the tests and generates coverage reports.
206206

0 commit comments

Comments
 (0)