Skip to content

Commit

Permalink
Tools: Added node update to CI setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
bre1470 committed Oct 29, 2021
1 parent 9d1cb40 commit 43a5cbb
Showing 1 changed file with 37 additions and 28 deletions.
65 changes: 37 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2.1
orbs:
aws-s3: circleci/aws-s3@3.0.0
browser-tools: circleci/browser-tools@1.2.3
slack: circleci/slack@3.4.1

parameters:
Expand Down Expand Up @@ -53,7 +54,7 @@ add_gh_user_config: &add_gh_user_config
executors:
node_image:
docker:
- image: circleci/node:lts-browsers
- image: cimg/node:16.3.0

commands:
generate_references_command:
Expand All @@ -74,33 +75,41 @@ jobs:
steps:
# rather than using the checkout keyword we checkout via commandline
# to avoid a huge and slow checkout depth
- <<: *add_gh_keys
- <<: *add_to_ssh_config
- << : *load_source_from_cache
# Temporary workaround for https://discuss.circleci.com/t/22437
- run: |
if [ -n "$CIRCLE_TAG" ]
then
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
fi
- checkout
- save_cache:
key: source-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}-{{ .Revision }}
paths:
- ".git"
- run: node --version && npm --version
- restore_cache:
keys:
- npm-deps-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}-{{ checksum "package.json" }}
- npm-deps-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}
- run: npm ci --quiet --cache .npm --prefer-offline
- save_cache:
paths:
- /home/circleci/repo/highcharts/.npm
key: npm-deps-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}-{{ checksum "package.json" }}
- run: npm run gulp scripts
- run: git diff --name-only --exit-code || (echo "Untracked files found. Did you forget to commit any transpiled files? Failing build now as this likely will trigger errors later in the build.." && exit 1)
- <<: *persist_workspace
- <<: *add_gh_keys
- <<: *add_to_ssh_config
- << : *load_source_from_cache
- run: sudo apt-get update -y
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- run:
command: |
google-chrome --version
chromedriver --version
name: Check Chrome
# Temporary workaround for https://discuss.circleci.com/t/22437
- run: |
if [ -n "$CIRCLE_TAG" ]
then
git fetch --force origin "refs/tags/${CIRCLE_TAG}:refs/tags/${CIRCLE_TAG}"
fi
- checkout
- save_cache:
key: source-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}-{{ .Revision }}
paths:
- ".git"
- run: node --version && npm --version
- restore_cache:
keys:
- npm-deps-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}-{{ checksum "package.json" }}
- npm-deps-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}
- run: npm ci --quiet --cache .npm --prefer-offline
- save_cache:
paths:
- /home/circleci/repo/highcharts/.npm
key: npm-deps-{{ .Environment.HIGHCHARTS_CACHE_VERSION }}-{{ .Branch }}-{{ checksum "package.json" }}
- run: npm run gulp scripts
- run: git diff --name-only --exit-code || (echo "Untracked files found. Did you forget to commit any transpiled files? Failing build now as this likely will trigger errors later in the build.." && exit 1)
- <<: *persist_workspace

generate_ts_declarations:
<<: *defaults
Expand Down

0 comments on commit 43a5cbb

Please sign in to comment.