-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from samvera-labs/orb-tools
Updates the orb testing/publishing workflow
- Loading branch information
Showing
2 changed files
with
66 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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,29 +1,66 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
orb-tools: circleci/orb-tools@8.1.0 | ||
samvera: samvera/circleci-orb@dev:alpha | ||
orb-tools: circleci/orb-tools@10.0.3 | ||
samvera: samvera/circleci-orb@dev:alpha | ||
|
||
executors: | ||
ci-base: | ||
resource_class: small | ||
docker: | ||
- image: cibuilds/base | ||
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' | ||
|
||
jobs: | ||
# yaml anchor filters | ||
workflows: | ||
lint_pack-validate_publish-dev: | ||
jobs: | ||
- orb-tools/lint | ||
integration-tests: | ||
docker: | ||
- image: cimg/base:stable | ||
steps: | ||
- checkout | ||
# TODO: integration testing | ||
|
||
- orb-tools/pack: | ||
requires: | ||
workflows: | ||
lint_pack-validate_publish-dev: | ||
unless: << pipeline.parameters.run-integration-tests >> | ||
jobs: | ||
- orb-tools/lint | ||
# Disabled until we have an API token - maybe forever? | ||
# | ||
# - orb-tools/publish-dev: | ||
# context: orb-publishing | ||
# orb-name: samvera/circleci-orb | ||
# requires: | ||
# - orb-tools/pack | ||
|
||
- orb-tools/pack | ||
|
||
- orb-tools/publish-dev: | ||
orb-name: samvera/circleci-orb | ||
requires: | ||
- orb-tools/lint | ||
- orb-tools/pack | ||
|
||
- orb-tools/trigger-integration-tests-workflow: | ||
name: trigger-integration-dev | ||
requires: | ||
- orb-tools/publish-dev | ||
|
||
integration-tests: | ||
when: << pipeline.parameters.run-integration-tests >> | ||
jobs: | ||
- integration-tests | ||
|
||
tag-triggered-orb-publishing: | ||
unless: << pipeline.parameters.run-integration-tests >> | ||
jobs: | ||
# To approve the job, visit the Workflows page in CircleCI | ||
- hold-for-approval: | ||
type: approval | ||
filters: *orb_promotion_filters | ||
|
||
- orb-tools/dev-promote-prod-from-git-tag: | ||
orb-name: samvera/circleci-orb | ||
add-pr-comment: false | ||
requires: | ||
- hold-for-approval | ||
filters: *orb_promotion_filters |
This file contains 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