Skip to content

Commit

Permalink
Integrating samvera-circleci-orb into maintenance as a part of the Co…
Browse files Browse the repository at this point in the history
…re Component reorganization
  • Loading branch information
jrgriffiniii committed Feb 14, 2023
1 parent 2905104 commit db8b93a
Show file tree
Hide file tree
Showing 24 changed files with 1,121 additions and 40 deletions.
63 changes: 56 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,49 @@
---
version: 2.1

orbs:
orb-tools: circleci/[email protected]
# The following error is raised:
#
# The dev version of samvera/circleci-orb@dev:alpha has expired. Dev versions of orbs are only valid for 90 days after publishing.
# samvera: samvera/circleci-orb@dev:alpha
samvera: samvera/[email protected]

orb_promotion_filters: &orb_promotion_filters
branches:
ignore: /.*/
tags:
only: /^(major|minor|patch)-release-v\d+\.\d+\.\d+$/

parameters:
run-integration-tests:
type: boolean
default: false
dev-orb-version:
type: string
# default: 'dev:alpha'
default: "1.0"

jobs:
bundle_and_test:
lint:
parameters:
ruby_version:
type: string
bundler_version:
type: string
default: 2.3.11

executor:
name: "samvera/ruby"
ruby_version: << parameters.ruby_version >>

environment:
WAIT_FOR_JEKYLL: 10
NOKOGIRI_USE_SYSTEM_LIBRARIES: true

steps:
- samvera/cached_checkout

- run:
name: Check for a branch named 'master'
command: |
Expand All @@ -27,14 +53,17 @@ jobs:
echo "$(git branch --all --list master */master)"
fi
[[ -z "$(git branch --all --list master */master)" ]]
- run:
name: Install the NPM dependencies using Yarn
command: |
yarn install -D
- run:
name: Lint the formatting of source code files using Prettier
command: |
yarn run prettier --check .
- persist_to_workspace:
root: ~/
paths:
Expand All @@ -45,9 +74,19 @@ workflows:
version: 2
ci:
jobs:
- bundle_and_test:
name: ruby3-1
ruby_version: 3.1.1
- lint:
name: lint
ruby_version: 3.2.0
- orb-tools/lint:
source-dir: samvera-circleci-orb/src
- orb-tools/pack:
source-dir: samvera-circleci-orb/src
- orb-tools/publish:
vcs-type: github
orb-name: samvera/circleci-orb
requires:
- orb-tools/lint
- orb-tools/pack

nightly:
triggers:
Expand All @@ -58,6 +97,16 @@ workflows:
only:
- main
jobs:
- bundle_and_test:
name: ruby3-1
ruby_version: 3.1.1
- lint:
name: lint
ruby_version: 3.2.0
- orb-tools/lint:
source-dir: samvera-circleci-orb/src
- orb-tools/pack:
source-dir: samvera-circleci-orb/src
- orb-tools/publish:
vcs-type: github
orb-name: samvera/circleci-orb
requires:
- orb-tools/lint
- orb-tools/pack
7 changes: 7 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
extends: default

rules:
line-length:
max: 80
level: warning
12 changes: 12 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]

[dev-packages]
yamllint = "*"

[requires]
python_version = "3.10"
91 changes: 91 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit db8b93a

Please sign in to comment.