Skip to content

Commit eceed93

Browse files
committed
feat: Adds node version and caching
1 parent d8fcfa7 commit eceed93

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/task-2.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: task-2-workflow
22
run-name: Task 2 workflow
3-
on:
4-
pull_request:
5-
branches:
6-
- main
3+
on:
4+
pull_request
75
defaults:
86
run:
97
working-directory: desktop-app
@@ -13,7 +11,13 @@ jobs:
1311
steps:
1412
- name: Checkout code
1513
uses: actions/checkout@v4
14+
- name: Use Node.js LTS
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: "lts/*"
18+
cache: "npm"
19+
cache-dependency-path: desktop-app
1620
- name: Install dependencies
17-
run: npm install
21+
run: npm ci
1822
- name: Run unit tests
1923
run: npm test

0 commit comments

Comments
 (0)