-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (36 loc) · 940 Bytes
/
ci-cd.yml
File metadata and controls
45 lines (36 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Task Dashboard App CI/CD
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Explicitly define permissions
permissions:
contents: read
pull-requests: read
checks: write
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build application (without data hydration)
run: npm run build
env:
VITE_ENABLE_DATA_HYDRATION: 'false'
- name: Run tests
run: npm test
# TODO: Add linting steps
# - name: Run ESLint
# run: npm run lint
#
# - name: Run accessibility checks
# run: npm run lint:a11y