-
Notifications
You must be signed in to change notification settings - Fork 502
Maintenance updates #477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Maintenance updates #477
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e249ab2
Fix warning about excerpt separator
monfresh efa6218
Update Ruby from 3.1.2 to 3.2.4
monfresh a4bd886
Update jekyll from 4.3.2 to 4.3.3
monfresh dbc13d6
Update nokogiri from 1.16.2 to 1.16.4
monfresh 89c258a
Update rspec from 3.10.0 to 3.13.0
monfresh 95709c1
Update bundler from 2.4.10 to 2.5.9
monfresh 8d02355
Update CircleCI config
monfresh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,61 +1,39 @@ | ||
| # Ruby CircleCI 2.0 configuration file | ||
| # Check https://circleci.com/docs/2.0/language-ruby/ for more details | ||
| version: 2 | ||
| version: 2.1 | ||
| orbs: | ||
| browser-tools: circleci/browser-tools@1.4.8 | ||
| node: circleci/node@5.2.0 | ||
| ruby: circleci/ruby@2.1.2 | ||
| jobs: | ||
| build: | ||
| docker: | ||
| # Specify the Ruby version you desire here | ||
| - image: cimg/ruby:3.1-browsers | ||
|
|
||
| working_directory: ~/identity-dev-docs | ||
| - image: cimg/ruby:3.2-browsers | ||
| environment: | ||
| BUNDLE_JOBS: '3' | ||
| BUNDLE_RETRY: '3' | ||
| steps: | ||
| - checkout | ||
|
|
||
| - run: | ||
| name: Switch Node.js version | ||
| command: | | ||
| wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash | ||
| export NVM_DIR="$HOME/.nvm" | ||
| . "$NVM_DIR/nvm.sh" --install --latest-npm | ||
| echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV; | ||
| echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV; | ||
|
|
||
| - node/install | ||
| - run: | ||
| name: Print Node.js version | ||
| command: node -v | ||
|
|
||
| - restore_cache: | ||
| key: v2-identity-dev-docs-{{ checksum "package-lock.json" }}-{{ checksum "Gemfile.lock" }} | ||
|
|
||
| - run: | ||
| name: Install dependencies | ||
| command: | | ||
| gem install bundler | ||
| bundle install --jobs=4 --retry=3 --path vendor/bundle | ||
| npm ci | ||
|
|
||
| # Store bundle cache | ||
| - save_cache: | ||
| key: v2-identity-dev-docs-{{ checksum "package-lock.json" }}-{{ checksum "Gemfile.lock" }} | ||
| paths: | ||
| - vendor/bundle | ||
| - ~/.npm | ||
|
|
||
| - checkout | ||
| - browser-tools/install-chromedriver | ||
| - node/install-packages | ||
| - ruby/install-deps | ||
|
Comment on lines
+23
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also didn't realize they had these conveniences with built-in caching 🎉
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, and built-in test reporting as well. |
||
| - run: | ||
| name: Run Tests | ||
| name: Test Setup | ||
| command: | | ||
| make clean | ||
| make test | ||
| make build | ||
| - ruby/rspec-test: | ||
| include: spec/*_spec.rb | ||
| - run: npm run test | ||
|
|
||
| - run: | ||
| name: Run htmlproofer (no external links) | ||
| command: bundle exec scripts/htmlproofer --internal | ||
| - run: | ||
| name: Lint JavaScript | ||
| command: make lint-js | ||
|
|
||
| # collect reports | ||
| - store_test_results: | ||
| path: /tmp/test-results | ||
| - store_artifacts: | ||
| path: /tmp/test-results | ||
| destination: test-results | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 3.1.2 | ||
| 3.2.4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,3 +59,5 @@ defaults: | |
| path: '' | ||
| values: | ||
| layout: documentation | ||
|
|
||
| excerpt_separator: <!--more--> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat, I didn't know CircleCI had built-in support for NVM! That feels a lot nicer / safer than running code directly from GitHub 😅 I wonder if that's always been a thing, or if it's a new feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this feature is relatively new. I forget when I first discovered it. Maybe in the past 2 years? It looks like the Node Orb was originally created in 2018, but I'm not sure if it had all of today's functionality back then.