-
Notifications
You must be signed in to change notification settings - Fork 27
38 lines (29 loc) · 884 Bytes
/
Copy pathci.yml
File metadata and controls
38 lines (29 loc) · 884 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
name: CI
on:
pull_request:
push:
branches: [master, develop]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
cache-dependency-path: package-lock.json
- name: Instalar dependencias (raiz)
run: npm ci
- name: Workaround npm optional deps (rollup linux)
run: npm i --no-save --workspace=frontend @rollup/rollup-linux-x64-gnu
- name: Coverage frontend
run: npm run test:coverage --workspace=frontend
- name: Coverage backend
run: npm run test:coverage --workspace=backend
- name: Lint frontend
run: npm run lint --workspace=frontend
- name: Build frontend
run: npm run build --workspace=frontend