ci/cd fixes
Run Tests on Branches / Backend Tests (push) Successful in 2m22s
Run Tests on Branches / Frontend Tests (push) Successful in 1m59s

This commit is contained in:
Antoni Nuñez Romeu
2026-07-07 01:49:55 +02:00
parent fe22e6ee9b
commit b5e5edda30
4 changed files with 1184 additions and 26 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '24'
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
@@ -28,7 +28,7 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '24'
cache: 'npm' cache: 'npm'
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
+23 -23
View File
@@ -3,43 +3,43 @@ name: Run Tests on Branches
on: on:
push: push:
branches-ignore: branches-ignore:
- 'main' - 'main'
jobs: jobs:
test-backend: test-backend:
name: Backend Tests name: Backend Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '24'
cache: 'npm' cache: 'npm'
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci
- name: Run Backend Tests - name: Run Backend Tests
run: npm test --workspace=farma-clic-backend -- --ci run: npm test --workspace=farma-clic-backend -- --ci
test-frontend: test-frontend:
name: Frontend Tests name: Frontend Tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: '20' node-version: '24'
cache: 'npm' cache: 'npm'
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci
- name: Run Frontend Tests - name: Run Frontend Tests
run: npm test --workspace=farma-clic-frontend -- --run --reporter=basic run: npm test --workspace=farma-clic-frontend -- --run --reporter=basic
File diff suppressed because it is too large Load Diff
+24 -1
View File
@@ -23,7 +23,9 @@
"turbo": "^2.5.0" "turbo": "^2.5.0"
} }
}, },
"apps/API": {}, "apps/API": {
"name": "farma-clic-api-sources"
},
"apps/backend": { "apps/backend": {
"name": "farma-clic-backend", "name": "farma-clic-backend",
"version": "1.0.0", "version": "1.0.0",
@@ -40,6 +42,7 @@
"@opentelemetry/sdk-trace-base": "^1.28.0", "@opentelemetry/sdk-trace-base": "^1.28.0",
"@opentelemetry/semantic-conventions": "^1.28.0", "@opentelemetry/semantic-conventions": "^1.28.0",
"axios": "^1.6.0", "axios": "^1.6.0",
"barcode-detector": "^3.2.0",
"bcrypt": "^5.1.1", "bcrypt": "^5.1.1",
"connect-pg-simple": "^10.0.0", "connect-pg-simple": "^10.0.0",
"connect-sqlite3": "^0.9.16", "connect-sqlite3": "^0.9.16",
@@ -103,6 +106,7 @@
"expo-constants": "~57.0.3", "expo-constants": "~57.0.3",
"expo-dev-client": "~57.0.5", "expo-dev-client": "~57.0.5",
"expo-device": "~7.0.2", "expo-device": "~7.0.2",
"expo-image-picker": "~57.0.2",
"expo-linking": "~57.0.1", "expo-linking": "~57.0.1",
"expo-local-authentication": "~57.0.0", "expo-local-authentication": "~57.0.0",
"expo-notifications": "~57.0.3", "expo-notifications": "~57.0.3",
@@ -724,6 +728,25 @@
"react-native": "*" "react-native": "*"
} }
}, },
"apps/frontend-mobile/node_modules/expo-image-loader": {
"version": "57.0.0",
"resolved": "https://registry.npmjs.org/expo-image-loader/-/expo-image-loader-57.0.0.tgz",
"integrity": "sha512-EhwnoPC4T/EMdB7Nsg7qITzhO/qB0hUnmVghmtAKQwwDVaLWWYCGE4NLkes3zk9Ub451SmS/swgPp4PCPzOlnw==",
"peerDependencies": {
"expo": "*"
}
},
"apps/frontend-mobile/node_modules/expo-image-picker": {
"version": "57.0.2",
"resolved": "https://registry.npmjs.org/expo-image-picker/-/expo-image-picker-57.0.2.tgz",
"integrity": "sha512-XW+C5weIthkOLCJZzExeRJf9pcWfaXNHSDm76gmZVhDUVIHdi9IS3eihAIF0WA0fBo9ogIfQs/iep/c6CzIMKg==",
"dependencies": {
"expo-image-loader": "~57.0.0"
},
"peerDependencies": {
"expo": "*"
}
},
"apps/frontend-mobile/node_modules/expo-keep-awake": { "apps/frontend-mobile/node_modules/expo-keep-awake": {
"version": "57.0.0", "version": "57.0.0",
"resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-57.0.0.tgz", "resolved": "https://registry.npmjs.org/expo-keep-awake/-/expo-keep-awake-57.0.0.tgz",