Skip to content

Commit 35f23e2

Browse files
committed
feat: Adds solution to task 3
1 parent 6ad35f3 commit 35f23e2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/task-3.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: task-3-workflow
2+
run-name: Task 3 workflow
3+
on:
4+
pull_request:
5+
paths:
6+
- "desktop-app/**/*.ts"
7+
- "desktop-app/package.json"
8+
- "desktop-app/tsconfig.*"
9+
- "desktop-app/vite"
10+
11+
defaults:
12+
run:
13+
working-directory: desktop-app
14+
jobs:
15+
unit-tests:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
- name: Use Node.js LTS
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: "lts/*"
24+
cache: "npm"
25+
cache-dependency-path: desktop-app
26+
- name: Install dependencies
27+
run: npm ci
28+
- name: Run unit tests
29+
run: npm test

0 commit comments

Comments
 (0)