Skip to content

Commit c3b7f6d

Browse files
authored
fix rules for test workflow (#38)
* add rules into tests.yml * move rules template to top
1 parent 761acf8 commit c3b7f6d

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.gitlab/workflows/tests.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
1+
.rules:
2+
rules:
3+
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
4+
- if: $CI_COMMIT_TAG
5+
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
6+
17
lint:
2-
extends: .node-template
8+
extends:
9+
- .node-template
10+
- .rules
311
script:
412
- pnpm install
513
- pnpm lint
614

715
typecheck:
8-
extends: .node-template
16+
extends:
17+
- .node-template
18+
- .rules
919
script:
1020
- pnpm install
1121
- pnpm typecheck
1222

1323
spelling:
14-
extends: .node-template
24+
extends:
25+
- .node-template
26+
- .rules
1527
script:
1628
- pnpm install
1729
- pnpm spelling
1830

1931
e2e:
20-
extends: .node-template
32+
extends:
33+
- .node-template
34+
- .rules
2135
script:
2236
- pnpm install --frozen-lockfile
2337
- pnpm playwright:install

0 commit comments

Comments
 (0)