From 7ce0a5adf3a53d6e296d5a23153f49b7d0862125 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 19 Jul 2026 23:28:38 -0400 Subject: [PATCH] fix test pipeline --- .gitea/workflows/test.yml | 4 ++-- .gitlab-ci.yml | 23 +++++++++++++++++------ 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 660291c..ff17cb1 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -2,9 +2,9 @@ name: Test on: push: - branches: [develop] + branches: ["**"] pull_request: - branches: [develop] + branches: ["**"] concurrency: group: test-${{ gitea.ref }} diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8c67c61..8c7e981 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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