@newskit-render/core 1.83.0-alpha.0 → 1.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.83.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.83.0-alpha.0...@newskit-render/core@1.83.0) (2022-08-22)
7
+
8
+ **Note:** Version bump only for package @newskit-render/core
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.82.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/core@1.82.1-alpha.0...@newskit-render/core@1.82.1) (2022-08-22)
7
15
 
8
16
  **Note:** Version bump only for package @newskit-render/core
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @newskit-render/core
2
2
 
3
- А template website built using Next.js.
3
+ А template website built using Next.js framework.
4
4
 
5
5
  This package is used by [@newskit-render/create-render-app](https://www.npmjs.com/package/@newskit-render/create-render-app) as a template structure to scaffold the newly created project which the users of @newskit-render/create-render-app can use and modify for their purposes.
6
6
 
@@ -4,6 +4,7 @@ orbs:
4
4
  newskit:
5
5
  orbs:
6
6
  slack: circleci/slack@3.4.2
7
+ browser-tools: circleci/browser-tools@1.3.0
7
8
  executors:
8
9
  helm:
9
10
  docker:
@@ -15,7 +16,7 @@ orbs:
15
16
 
16
17
  node:
17
18
  docker:
18
- - image: circleci/node:16.13-buster-browsers
19
+ - image: cimg/node:16.13.0-browsers
19
20
  auth:
20
21
  username: ${DOCKER_USERNAME}
21
22
  password: ${DOCKER_PASSWORD}
@@ -351,8 +352,9 @@ orbs:
351
352
  keys:
352
353
  - <% PACKAGE_MANAGER >-build-{{ .Environment.BUILD_CACHE_VERSION }}-{{ checksum "<% PACKAGE_MANAGER_LOCK_FILE >" }}
353
354
  - <% PACKAGE_MANAGER >-build-{{ .Environment.BUILD_CACHE_VERSION }}-
354
- - attach_workspace:
355
- at: ~/project
355
+ - restore_cache:
356
+ keys:
357
+ - cypress-{{ .Environment.CYPRESS_CACHE_VERSION }}-{{ checksum "<% PACKAGE_MANAGER_LOCK_FILE >" }}
356
358
  - run:
357
359
  name: 'Install dependencies'
358
360
  command: <% PACKAGE_INSTALL >
@@ -370,10 +372,32 @@ orbs:
370
372
  key: cypress-{{ .Environment.CYPRESS_CACHE_VERSION }}-{{ checksum "<% PACKAGE_MANAGER_LOCK_FILE >" }}
371
373
  paths:
372
374
  - ~/.cache/Cypress
375
+ - persist_to_workspace:
376
+ root: ./
377
+ paths: .next
378
+
379
+ lint:
380
+ executor: node
381
+ steps:
382
+ - checkout
383
+ - attach_workspace:
384
+ at: ~/project
385
+ - restore_cache:
386
+ keys:
387
+ - <% PACKAGE_MANAGER >-build-{{ .Environment.BUILD_CACHE_VERSION }}-{{ checksum "<% PACKAGE_MANAGER_LOCK_FILE >" }}
373
388
  - run:
374
- name: 'Run lint'
375
- command: |
376
- <% PACKAGE_RUN > lint
389
+ name: "Run lint"
390
+ command: <% PACKAGE_RUN > lint
391
+
392
+ test_unit:
393
+ executor: node
394
+ steps:
395
+ - checkout
396
+ - attach_workspace:
397
+ at: ~/project
398
+ - restore_cache:
399
+ keys:
400
+ - <% PACKAGE_MANAGER >-build-{{ .Environment.BUILD_CACHE_VERSION }}-{{ checksum "<% PACKAGE_MANAGER_LOCK_FILE >" }}
377
401
  - run:
378
402
  name: 'Run tests'
379
403
  command: |
@@ -386,12 +410,8 @@ orbs:
386
410
  - store_artifacts:
387
411
  path: tests
388
412
  destination: tests
389
- - persist_to_workspace:
390
- root: ./
391
- paths: .next
392
413
 
393
414
  e2e_test:
394
- working_directory: ~/project
395
415
  executor: node
396
416
  steps:
397
417
  - checkout
@@ -403,12 +423,23 @@ orbs:
403
423
  - restore_cache:
404
424
  keys:
405
425
  - cypress-{{ .Environment.CYPRESS_CACHE_VERSION }}-{{ checksum "<% PACKAGE_MANAGER_LOCK_FILE >" }}
406
- - cypress-{{ .Environment.CYPRESS_CACHE_VERSION }}-
407
426
  - run:
408
427
  name: 'Export Newskit API variables'
409
428
  command: |
410
429
  echo "export NEWSKIT_API_X_API_KEY=$NEWSKIT_API_X_API_KEY" >> $BASH_ENV
411
430
  echo "export NEWSKIT_API_ENV_URL=$NEWSKIT_API_ENV_URL" >> $BASH_ENV
431
+ - run:
432
+ name: 'install cypress dependencies'
433
+ command: |
434
+ sudo apt-get update
435
+ sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
436
+ - browser-tools/install-chrome
437
+ - browser-tools/install-chromedriver
438
+ - run:
439
+ name: Check chrome install
440
+ command: |
441
+ google-chrome --version
442
+ chromedriver --version
412
443
  - run:
413
444
  name: 'start server'
414
445
  command: |
@@ -448,7 +479,7 @@ orbs:
448
479
  command: |
449
480
  sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
450
481
  sudo apt-get update
451
- sudo apt-get install python python-pip
482
+ sudo apt-get install python python3-pip
452
483
  sudo pip install awscli
453
484
  - aws_assume_role_file
454
485
  - run:
@@ -734,6 +765,7 @@ only_on_pr_branch: &only_on_pr_branch
734
765
  branches:
735
766
  ignore:
736
767
  - master
768
+ - main
737
769
  - develop
738
770
  # if you have release branches you might add
739
771
  # - /^release.*/
@@ -742,7 +774,9 @@ only_on_pr_branch: &only_on_pr_branch
742
774
  only_on_master_branch: &only_on_master_branch
743
775
  filters:
744
776
  branches:
745
- only: master
777
+ only:
778
+ - master
779
+ - main
746
780
 
747
781
  workflows:
748
782
  pull_request:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "1.83.0-alpha.0",
3
+ "version": "1.84.0",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -35,12 +35,12 @@
35
35
  "@apollo/client": "3.4.16",
36
36
  "@newskit-render/api": "^0.36.1",
37
37
  "@newskit-render/auth": "^0.44.0",
38
- "@newskit-render/checkout": "^0.52.0-alpha.0",
38
+ "@newskit-render/checkout": "^0.52.0",
39
39
  "@newskit-render/feature-flags": "^0.24.0",
40
40
  "@newskit-render/feed": "^0.24.0",
41
- "@newskit-render/my-account": "^2.3.0-alpha.0",
42
- "@newskit-render/shared-components": "^0.70.0-alpha.0",
43
- "@newskit-render/standalone-components": "^0.34.0-alpha.0",
41
+ "@newskit-render/my-account": "^2.3.0",
42
+ "@newskit-render/shared-components": "^0.70.0",
43
+ "@newskit-render/standalone-components": "^0.34.0",
44
44
  "@newskit-render/validation": "^0.51.0",
45
45
  "cross-fetch": "3.1.5",
46
46
  "graphql": "15.6.0",