Skip to content

Commit c1755d0

Browse files
authored
[SDK-2825] Update circleci config (#40)
1 parent 67af135 commit c1755d0

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Common Logic
2+
machine: &machine-cfg
3+
image: ubuntu-2004:202107-02
4+
25
defaults: &defaults
36
steps:
47
- attach_workspace:
@@ -38,28 +41,32 @@ defaults: &defaults
3841
npm install
3942
- run:
4043
name: Execute automated tests
41-
command: cd test && npm test
44+
command: cd test && npm test
45+
4246
# Jobs and Workflows
4347
version: 2
4448
jobs:
4549
checkout:
46-
machine: true
50+
machine:
51+
<<: *machine-cfg
4752
steps:
4853
- checkout
4954
- run:
5055
name: Clone test script
51-
command: git clone https://github.com/auth0-samples/api-quickstarts-tests test
56+
command: git clone -b v0.0.1 --depth 1 https://github.com/auth0-samples/api-quickstarts-tests test
5257
- persist_to_workspace:
5358
root: ~/
5459
paths:
5560
- project
5661
- test
5762
01-Authorization-RS256:
58-
machine: true
63+
machine:
64+
<<: *machine-cfg
5965
environment:
60-
- AUTH0_CFG: 01-Authorization-RS256
61-
- SAMPLE_PATH: 01-Authorization-RS256
66+
AUTH0_CFG: 01-Authorization-RS256
67+
SAMPLE_PATH: 01-Authorization-RS256
6268
<<: *defaults
69+
6370
workflows:
6471
version: 2
6572
API-Tests:

0 commit comments

Comments
 (0)