@@ -48,6 +48,15 @@ executors:
48
48
docker :
49
49
- image : cimg/node:<<parameters.node-version>>
50
50
resource_class : small
51
+ node-docker-medium :
52
+ parameters :
53
+ node-version :
54
+ # renovate datasource=node-version depName=node
55
+ default : 22.14.0
56
+ type : string
57
+ docker :
58
+ - image : cimg/node:<<parameters.node-version>>
59
+ resource_class : medium
51
60
node-redis-postgres-s3-docker :
52
61
parameters :
53
62
node-version :
@@ -89,7 +98,7 @@ executors:
89
98
POSTGRES_USER : circleci
90
99
POSTGRES_HOST_AUTH_METHOD : trust
91
100
- image : redis:7.2.5-alpine
92
- resource_class : medium+
101
+ resource_class : medium
93
102
node-postgres-docker :
94
103
parameters :
95
104
node-version :
@@ -154,39 +163,39 @@ workflows:
154
163
requires :
155
164
- audit_logger_install
156
165
157
- - mon_pix_install :
166
+ - mon_pix_install_and_build :
158
167
context : Pix
159
168
requires :
160
169
- checkout
161
170
- mon_pix_lint :
162
171
context : Pix
163
172
requires :
164
- - mon_pix_install
173
+ - mon_pix_install_and_build
165
174
- mon_pix_test :
166
175
context : Pix
167
176
requires :
168
- - mon_pix_install
177
+ - mon_pix_install_and_build
169
178
- e2e_test_mon_pix :
170
179
context : Pix
171
180
requires :
172
- - checkout
181
+ - mon_pix_install_and_build
173
182
174
- - orga_install :
183
+ - orga_install_and_build :
175
184
context : Pix
176
185
requires :
177
186
- checkout
178
187
- orga_lint :
179
188
context : Pix
180
189
requires :
181
- - orga_install
190
+ - orga_install_and_build
182
191
- orga_test :
183
192
context : Pix
184
193
requires :
185
- - orga_install
194
+ - orga_install_and_build
186
195
- e2e_test_orga :
187
196
context : Pix
188
197
requires :
189
- - checkout
198
+ - orga_install_and_build
190
199
191
200
- certif_install :
192
201
context : Pix
@@ -385,6 +394,7 @@ jobs:
385
394
path : /home/circleci/test-results
386
395
- store_artifacts :
387
396
path : /home/circleci/test-results
397
+
388
398
api_integration_test :
389
399
executor :
390
400
name : node-redis-postgres-s3-docker
@@ -428,6 +438,7 @@ jobs:
428
438
path : /home/circleci/test-results
429
439
- store_artifacts :
430
440
path : /home/circleci/test-results
441
+
431
442
api_acceptance_test :
432
443
executor :
433
444
name : node-redis-postgres-s3-docker
@@ -528,9 +539,9 @@ jobs:
528
539
- store_artifacts :
529
540
path : /home/circleci/test-results
530
541
531
- mon_pix_install :
542
+ mon_pix_install_and_build :
532
543
executor :
533
- name : node-docker
544
+ name : node-docker-medium
534
545
working_directory : ~/pix/mon-pix
535
546
steps :
536
547
- attach_workspace :
@@ -540,6 +551,12 @@ jobs:
540
551
keys :
541
552
- v7-mon-pix-npm-{{ checksum "cachekey" }}
542
553
- run : npm ci
554
+ - run :
555
+ name : Build Pix App
556
+ command : npm run build
557
+ environment :
558
+ BUILD_ENVIRONMENT : development
559
+ JOBS : 2
543
560
- save_cache :
544
561
key : v7-mon-pix-npm-{{ checksum "cachekey" }}
545
562
paths :
@@ -581,9 +598,9 @@ jobs:
581
598
- store_artifacts :
582
599
path : /home/circleci/test-results/mon_pix
583
600
584
- orga_install :
601
+ orga_install_and_build :
585
602
executor :
586
- name : node-docker
603
+ name : node-docker-medium
587
604
working_directory : ~/pix/orga
588
605
steps :
589
606
- attach_workspace :
@@ -593,6 +610,12 @@ jobs:
593
610
keys :
594
611
- v7-orga-npm-{{ checksum "cachekey" }}
595
612
- run : npm ci
613
+ - run :
614
+ name : Build Pix Orga
615
+ command : npm run build
616
+ environment :
617
+ BUILD_ENVIRONMENT : development
618
+ JOBS : 2
596
619
- save_cache :
597
620
key : v7-orga-npm-{{ checksum "cachekey" }}
598
621
paths :
@@ -811,11 +834,9 @@ jobs:
811
834
key : v7-e2e-npm-{{ checksum "cachekey" }}
812
835
paths :
813
836
- ~/.npm
814
-
815
837
- run :
816
838
name : Lint
817
839
command : npm run lint
818
-
819
840
- run :
820
841
working_directory : ~/pix/api
821
842
command : cat package*.json > cachekey
@@ -826,20 +847,6 @@ jobs:
826
847
name : Install Pix API
827
848
working_directory : ~/pix/api
828
849
command : npm ci
829
-
830
- - run :
831
- working_directory : ~/pix/mon-pix
832
- command : cat package*.json > cachekey
833
- - restore_cache :
834
- keys :
835
- - v7-mon-pix-npm-{{ checksum "~/pix/mon-pix/cachekey" }}
836
- - run :
837
- name : Install Pix App
838
- environment :
839
- JOBS : 1
840
- working_directory : ~/pix/mon-pix
841
- command : npm ci
842
-
843
850
- run :
844
851
name : Start Pix API
845
852
working_directory : ~/pix/api
@@ -849,37 +856,29 @@ jobs:
849
856
REDIS_URL : ' redis://localhost:6379'
850
857
background : true
851
858
command : npm start
852
-
853
859
- run :
854
860
name : Start Pix App
855
861
working_directory : ~/pix/mon-pix
856
- environment :
857
- JOBS : 1
862
+ command : npx ember server --path=./dist --proxy=http://localhost:3000
858
863
background : true
859
- command : npm start
860
-
861
864
- run :
862
865
name : Prepare database
863
866
working_directory : ~/pix/api
864
867
environment :
865
868
DATABASE_URL : ' postgres://circleci@localhost:5432/circleci'
866
869
command : npm run db:prepare
867
-
868
870
- run :
869
871
name : Refresh cache
870
872
environment :
871
- JOBS : 1
872
873
DATABASE_URL : ' postgres://circleci@localhost:5432/circleci'
873
874
working_directory : ~/pix/api
874
875
command : npm run cache:refresh
875
-
876
876
- run :
877
877
name : Prepare datamart
878
878
command : npm run datamart:prepare
879
879
working_directory : ~/pix/api
880
880
environment :
881
881
DATAMART_DATABASE_URL : postgres://circleci@localhost:5432/circleci_datamart
882
-
883
882
- run :
884
883
name : Run tests
885
884
environment :
@@ -905,11 +904,9 @@ jobs:
905
904
key : v7-e2e-npm-{{ checksum "cachekey" }}
906
905
paths :
907
906
- ~/.npm
908
-
909
907
- run :
910
908
name : Lint
911
909
command : npm run lint
912
-
913
910
- run :
914
911
working_directory : ~/pix/api
915
912
command : cat package*.json > cachekey
@@ -920,20 +917,6 @@ jobs:
920
917
name : Install Pix API
921
918
working_directory : ~/pix/api
922
919
command : npm ci
923
-
924
- - run :
925
- working_directory : ~/pix/orga
926
- command : cat package*.json > cachekey
927
- - restore_cache :
928
- keys :
929
- - v7-orga-npm-{{ checksum "~/pix/orga/cachekey" }}
930
- - run :
931
- name : Install Pix Orga
932
- environment :
933
- JOBS : 2
934
- working_directory : ~/pix/orga
935
- command : npm ci
936
-
937
920
- run :
938
921
name : Start Pix API
939
922
working_directory : ~/pix/api
@@ -943,37 +926,29 @@ jobs:
943
926
REDIS_URL : ' redis://localhost:6379'
944
927
background : true
945
928
command : npm start
946
-
947
929
- run :
948
930
name : Start Pix Orga
949
931
working_directory : ~/pix/orga
950
- environment :
951
- JOBS : 2
932
+ command : npx ember server --path=./dist --proxy=http://localhost:3000
952
933
background : true
953
- command : npm start
954
-
955
934
- run :
956
935
name : Prepare database
957
936
working_directory : ~/pix/api
958
937
environment :
959
938
DATABASE_URL : ' postgres://circleci@localhost:5432/circleci'
960
939
command : npm run db:prepare
961
-
962
940
- run :
963
941
name : Refresh cache
964
942
environment :
965
- JOBS : 1
966
943
DATABASE_URL : ' postgres://circleci@localhost:5432/circleci'
967
944
working_directory : ~/pix/api
968
945
command : npm run cache:refresh
969
-
970
946
- run :
971
947
name : Prepare datamart
972
948
command : npm run datamart:prepare
973
949
working_directory : ~/pix/api
974
950
environment :
975
951
DATAMART_DATABASE_URL : postgres://circleci@localhost:5432/circleci_datamart
976
-
977
952
- run :
978
953
name : Run tests
979
954
environment :
0 commit comments