fix test pipeline
Build & Push / Build & Push Docker Image (push) Failing after 1m59s
Test / Type Check (all packages) (push) Failing after 59s
Test / API Unit Tests (push) Has been skipped
Test / Homepage Unit Tests (push) Has been skipped
Test / Carplace Unit Tests (push) Has been skipped
Test / Admin Unit Tests (push) Has been skipped
Test / Dashboard Unit Tests (push) Has been skipped
Test / API Integration Tests (push) Has been skipped

This commit is contained in:
root
2026-07-19 23:28:38 -04:00
parent 9c526af996
commit 7ce0a5adf3
2 changed files with 19 additions and 8 deletions
+2 -2
View File
@@ -2,9 +2,9 @@ name: Test
on:
push:
branches: [develop]
branches: ["**"]
pull_request:
branches: [develop]
branches: ["**"]
concurrency:
group: test-${{ gitea.ref }}
+17 -6
View File
@@ -12,7 +12,7 @@ variables:
# ====================================
# TEST STAGE
# Runs on every push and merge request
# Runs on every branch push and merge request
# ====================================
api_tests:
@@ -26,7 +26,7 @@ api_tests:
- npm run test:api
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH'
carplace_tests:
stage: test
@@ -38,7 +38,7 @@ carplace_tests:
- npm run test:carplace
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH'
admin_tests:
stage: test
@@ -49,7 +49,7 @@ admin_tests:
- npm run test:admin
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH'
dashboard_tests:
stage: test
@@ -61,7 +61,18 @@ dashboard_tests:
- npm run test:dashboard
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH'
homepage_tests:
stage: test
image: node:20-bookworm
before_script:
- npm ci
script:
- npm run test:homepage
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH'
integration_tests:
stage: test
@@ -100,7 +111,7 @@ integration_tests:
- npm run test:api:integration
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
- if: '$CI_COMMIT_BRANCH'
# ====================================
# BUILD STAGE