Skip to content

Commit

Permalink
fix: circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
RodEsp committed May 12, 2021
1 parent e9c9cff commit 2619bc3
Showing 1 changed file with 32 additions and 52 deletions.
84 changes: 32 additions & 52 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,42 @@
---
version: 2.1
orbs:
release-management: salesforce/npm-release-management@4

parameters:
run-auto-workflows:
description: |
Boolean that controls when an workflow would run.
It is used to gate which workflows should run when github events occur.
This parameter is used by automation to determine if a workflow will run within a pipeline.
default: true
type: boolean
run-just-nuts:
description: |
Boolean that controls when the just-nuts will run.
Default value is false and this parameter is used by automation to determine if
the just-nuts workflow will run.
default: false
type: boolean
sfdx_version:
description: |
By default, the latest version of the standalone CLI will be installed.
To install via npm, supply a version tag such as "latest" or "6".
default: ''
type: string
repo_tag:
description: The tag of the module repo to checkout, '' defaults to branch/PR
default: ''
type: string

workflows:
version: 2
test-and-release:
when: << pipeline.parameters.run-auto-workflows >>
jobs:
- release-management/validate-pr:
filters:
branches:
ignore: main
release-management/test-package:
matrix:
parameters:
os:
- linux
- windows
node_version:
- latest
- lts
- maintenance
exclude:
- os: windows
node_version: lts
- os: windows
node_version: maintenance
- release-management/test-package:
matrix:
parameters:
Expand All @@ -47,7 +60,6 @@ workflows:
filters:
branches:
only: main
when: << pipeline.parameters.run-auto-workflows >>
test-ts-update:
triggers:
- schedule:
Expand All @@ -58,47 +70,15 @@ workflows:
- main
jobs:
- release-management/test-ts-update

just-nuts:
when: << pipeline.parameters.run-just-nuts >>
jobs:
- release-management/test-nut:
name: just-nuts-<< matrix.os >>
sfdx_version: << pipeline.parameters.sfdx_version >>
sfdx_executable_path: sfdx
sfdx_executable_path: 'sfdx'
repo_tag: << pipeline.parameters.repo_tag >>
matrix:
parameters:
os:
- linux
- windows
parameters:
run-auto-workflows:
description: >
Boolean that controls when an workflow would run.
It is used to gate which workflows should run when github events occur.
This parameter is used by automation to determine if a workflow will run
within a pipeline.
default: true
type: boolean
run-just-nuts:
description: >
Boolean that controls when the just-nuts will run.
Default value is false and this parameter is used by automation to
determine if
the just-nuts workflow will run.
default: false
type: boolean
sfdx_version:
description: |
By default, the latest version of the standalone CLI will be installed.
To install via npm, supply a version tag such as "latest" or "6".
default: ''
type: string
repo_tag:
description: 'The tag of the module repo to checkout, '''' defaults to branch/PR'
default: ''
type: string
os: [linux, windows]

0 comments on commit 2619bc3

Please sign in to comment.