From 0ac5e83e26ee20908767b0e2e10035f1bc1712ea Mon Sep 17 00:00:00 2001 From: Ali Farooq Date: Tue, 30 Sep 2025 09:55:22 +0000 Subject: [PATCH 1/2] add rules into tests.yml --- .gitlab/workflows/tests.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitlab/workflows/tests.yml b/.gitlab/workflows/tests.yml index b04d169..7244574 100644 --- a/.gitlab/workflows/tests.yml +++ b/.gitlab/workflows/tests.yml @@ -1,23 +1,31 @@ lint: - extends: .node-template + extends: + - .node-template + - .rules script: - pnpm install - pnpm lint typecheck: - extends: .node-template + extends: + - .node-template + - .rules script: - pnpm install - pnpm typecheck spelling: - extends: .node-template + extends: + - .node-template + - .rules script: - pnpm install - pnpm spelling e2e: - extends: .node-template + extends: + - .node-template + - .rules script: - pnpm install --frozen-lockfile - pnpm playwright:install @@ -27,3 +35,9 @@ e2e: paths: - playwright-report/ expire_in: 30 days + +.rules: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH From d12c4a38fa86772e77b63d0a93f88e4ac239808a Mon Sep 17 00:00:00 2001 From: Ali Farooq Date: Tue, 30 Sep 2025 10:04:10 +0000 Subject: [PATCH 2/2] move rules template to top --- .gitlab/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab/workflows/tests.yml b/.gitlab/workflows/tests.yml index 7244574..c2adac0 100644 --- a/.gitlab/workflows/tests.yml +++ b/.gitlab/workflows/tests.yml @@ -1,3 +1,9 @@ +.rules: + rules: + - if: $CI_PIPELINE_SOURCE == "merge_request_event" + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + lint: extends: - .node-template @@ -35,9 +41,3 @@ e2e: paths: - playwright-report/ expire_in: 30 days - -.rules: - rules: - - if: $CI_PIPELINE_SOURCE == "merge_request_event" - - if: $CI_COMMIT_TAG - - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH