Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ orbs:
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
build:
description: Build, test and pack
description: Build, test and pack
executor:
name: windows/default
steps:
- checkout
- run:
name: "Install required components"
command: |
choco install -y dotnet-6.0-sdk
choco install -y dotnet-6.0-sdk
- run:
name: "Test Runner"
command: |
./build.ps1;
./build.ps1;
- when:
condition:
matches : { pattern: "^test-.+$", value: << pipeline.git.branch >> }
matches: {pattern: "^test-.+$", value: << pipeline.git.branch >>}
steps:
- run:
name: "Pack test package"
Expand All @@ -37,7 +37,7 @@ jobs:
location: "com/okta/devex/okta-idx-dotnet"
- when:
condition:
matches : { pattern: "^release-.+$", value: << pipeline.git.branch >> }
matches: {pattern: "^release-.+$", value: << pipeline.git.branch >>}
steps:
- run:
name: "Pack release package"
Expand All @@ -48,7 +48,7 @@ jobs:
location: "com/okta/devex/okta-idx-dotnet"
- when:
condition:
equal: [ "<<pipeline.git.branch>>", "master" ]
equal: ["<<pipeline.git.branch>>", "master"]
steps:
- run:
name: "Pack release package"
Expand All @@ -60,9 +60,26 @@ jobs:

# Invoke jobs via workflows
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
snyk-scan:
docker:
- image: '"cimg/openjdk:13.0" # Use an appropriate image that contains your
build-tools'
steps:
- 'general-platform-helpers/step-load-dependencies # Autogenerated by Terminus'
- general-platform-helpers/step-run-snyk-monitor:
scan-all-projects: true
skip-unresolved: false
workflows:
"Circle CI Build":
jobs:
- build

# VS Code Extension Version: 1.4.0
- general-platform-helpers/job-snyk-prepare:
name: prepare-snyk
requires:
- build
- snyk-scan:
name: execute-snyk
requires:
- prepare-snyk