...
1# Use the latest 2.1 version of CircleCI pipeline process engine.
2# See: https://circleci.com/docs/2.0/configuration-reference
3version: 2.1
4
5orbs:
6 platform-orb: okta/general-platform-helpers@1.2.2
7
8# Define a job to be invoked later in a workflow.
9# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
10jobs:
11 cache-secrets:
12 machine: true
13 resource_class: okta/generic-linux-x86
14 environment:
15 VAULT_ADDR: https://vault.aue1e.saasure.net
16 steps:
17 - checkout
18 - run:
19 name: "Vault login"
20 command: |
21 vault login -method=userpass username=$vault_username password=$vault_password > /dev/null 2>&1
22 - platform-orb/save-dependencies
23
24 test-v2:
25 docker:
26 - image: cimg/go:1.19.4
27 steps:
28 - checkout
29 - run: go version
30 - platform-orb/load-dependencies
31 - run:
32 name: "test stage"
33 command: make test
34
35 test-v3:
36 docker:
37 - image: cimg/go:1.19.4
38 steps:
39 - checkout
40 - run: go version
41 - run:
42 name: "test stage"
43 command: |
44 cd okta/v3
45 go mod download
46 go test -failfast -race ./ -test.v
47
48# Invoke jobs via workflows
49# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
50workflows:
51 "Circle CI Tests":
52 jobs:
53 - cache-secrets
54 - test-v2:
55 requires:
56 - cache-secrets
57 # - test-v3:
58 # requires:
59 # - cache-secrets
60
61# VS Code Extension Version: 1.4.0
View as plain text