File tree 1 file changed +16
-33
lines changed
1 file changed +16
-33
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ stages:
16
16
- test
17
17
- build
18
18
- deploy:images
19
- - deploy:retagging
20
19
21
20
workflow :
22
21
rules :
@@ -35,19 +34,27 @@ linting:
35
34
- pnpm --version
36
35
- pnpm install
37
36
script :
38
- - pnpx eslint
37
+ - pnpm run lint
39
38
artifacts :
40
39
expire_in : 1h
41
40
paths :
42
41
- node_modules
43
42
44
- # No test environment right now
45
- # test:
46
- # stage: test
47
- # script:
48
- # - ember test
43
+ test :
44
+ stage : test
45
+ before_script :
46
+ - node --version
47
+ - npm install -g pnpm
48
+ - pnpm --version
49
+ - pnpm install
50
+ script :
51
+ - pnpm run test
52
+ artifacts :
53
+ expire_in : 1h
54
+ paths :
55
+ - node_modules
49
56
50
- . build :
57
+ build :
51
58
stage : build
52
59
before_script :
53
60
- node --version
@@ -61,38 +68,14 @@ linting:
61
68
paths :
62
69
- node_modules
63
70
- dist
64
-
65
- build-prod :
66
- extends :
67
- - .build
68
71
rules :
69
72
- if : ' $CI_PIPELINE_SOURCE != "schedule"'
70
73
71
- deploy-prod :
72
- extends :
73
- - .build-and-deploy
74
- dependencies :
75
- - build-prod
76
- variables :
77
- DOCKERHUB_TAG : ' production'
78
- rules :
79
- - if : ' $CI_PIPELINE_SOURCE == "push" && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == "main"'
80
-
81
- deploy-dev :
82
- extends :
83
- - .build-and-deploy
84
- dependencies :
85
- - build-prod
86
- variables :
87
- DOCKERHUB_TAG : ' dev'
88
- rules :
89
- - if : ' $CI_PIPELINE_SOURCE == "push" && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == "main"'
90
-
91
74
deploy-merge-request :
92
75
extends :
93
76
- .build-and-deploy
94
77
dependencies :
95
- - build-prod
78
+ - build
96
79
variables :
97
80
DOCKERHUB_TAG : mr-$CI_MERGE_REQUEST_IID
98
81
rules :
You can’t perform that action at this time.
0 commit comments