-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/311-ascending-order
- Loading branch information
Showing
17 changed files
with
3,491 additions
and
2,908 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,12 +1,13 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
aws-cli: circleci/[email protected] | ||
aws-cli: circleci/[email protected] | ||
browser-tools: circleci/[email protected] | ||
|
||
executors: | ||
base: | ||
docker: | ||
- image: cimg/node:18.12.1 | ||
- image: cimg/node:18.18.2-browsers | ||
user: root | ||
|
||
commands: | ||
|
@@ -61,24 +62,25 @@ commands: | |
distribution_id: | ||
type: string | ||
default: '' | ||
mode: | ||
env: | ||
type: string | ||
default: dev | ||
steps: | ||
- run: | ||
name: Build code | ||
command: API_KEY=<< parameters.api_key >> CLIENT_ID=<< parameters.client_id >> GTM_ID=<< parameters.gtm_id >> ADOBE_LAUNCH_SCRIPT_URL=<< parameters.adobe_launch_script_url >> npm run build:<< parameters.mode >> | ||
command: API_KEY=<< parameters.api_key >> CLIENT_ID=<< parameters.client_id >> GTM_ID=<< parameters.gtm_id >> ADOBE_LAUNCH_SCRIPT_URL=<< parameters.adobe_launch_script_url >> npm run build:<< parameters.env >> | ||
- when: | ||
condition: | ||
and: | ||
- equal: [<< parameters.mode >>, 'prod'] | ||
- equal: [<< parameters.env >>, 'prod'] | ||
steps: | ||
- run: | ||
name: Set PROD specific env variables | ||
command: | | ||
echo 'export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID_PROD' >> $BASH_ENV | ||
echo 'export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY_PROD' >> $BASH_ENV | ||
- aws-cli/setup | ||
echo 'export AWS_BYOR_OIDC_ROLE=$AWS_BYOR_OIDC_ROLE_PROD' >> $BASH_ENV | ||
- aws-cli/setup: | ||
role_arn: $AWS_BYOR_OIDC_ROLE | ||
session_duration: '900' | ||
- run: | ||
name: Sync build artifacts to S3 | ||
command: aws s3 cp --recursive dist "s3://<< parameters.bucket_name >>/" | ||
|
@@ -92,6 +94,7 @@ jobs: | |
steps: | ||
- checkout | ||
- install-node-and-cypress-packages | ||
- browser-tools/install-chrome | ||
- run: | ||
name: Run e2e test cases | ||
command: API_KEY=$LOCAL_API_KEY ./run_e2e_tests.sh $LOCAL_TEST_URL | ||
|
@@ -107,7 +110,7 @@ jobs: | |
adobe_launch_script_url: $QA_ADOBE_LAUNCH_SCRIPT_URL | ||
bucket_name: $QA_BUCKET_NAME | ||
distribution_id: $QA_DISTRIBUTION_ID | ||
mode: dev | ||
env: dev | ||
prod-deployment: | ||
executor: base | ||
steps: | ||
|
@@ -120,7 +123,7 @@ jobs: | |
adobe_launch_script_url: $PROD_ADOBE_LAUNCH_SCRIPT_URL | ||
bucket_name: $PROD_BUCKET_NAME | ||
distribution_id: $PROD_DISTRIBUTION_ID | ||
mode: prod | ||
env: prod | ||
|
||
workflows: | ||
build-and-deploy: | ||
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* @thoughtworks/tw-digital @will-amaral |
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 +1,8 @@ | ||
{ "recommendations": ["esbenp.prettier-vscode", "EditorConfig.EditorConfig"] } | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"orta.vscode-jest", | ||
"editorconfig.editorconfig" | ||
] | ||
} |
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,5 +1,14 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"prettier.enable": true, | ||
"prettier.prettierPath": "./node_modules/prettier", | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 2 | ||
} | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
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,31 @@ | ||
#BYOR Contributors | ||
## BYOR Contributors | ||
|
||
In no particular order | ||
In alphabetic order: | ||
|
||
- [BRUNNEL6](https://github.com/BRUNNEL6) | ||
- [@andyw8](https://github.com/andyw8) | ||
|
||
- [lauraionescu](https://github.com/lauraionescu) | ||
- [@aschonfeld](https://github.com/aschonfeld) | ||
|
||
- [thenano](https://github.com/thenano) | ||
- [@br00k](https://github.com/br00k) | ||
|
||
- [trecenti](https://github.com/trecenti) | ||
- [@BRUNNEL6](https://github.com/BRUNNEL6) | ||
|
||
- [hkurosawa](https://github.com/hkurosawa) | ||
- [@camiloribeiro](https://github.com/camiloribeiro) | ||
|
||
- [kylec32](https://github.com/kylec32) | ||
- [@filipesabella](https://github.com/filipesabella) | ||
|
||
- [aschonfeld](https://github.com/aschonfeld) | ||
- [@hkurosawa](https://github.com/hkurosawa) | ||
|
||
- [andyw8](https://github.com/andyw8) | ||
- [@jaiganeshg](https://github.com/jaiganeshg) | ||
|
||
- [br00k](https://github.com/br00k) | ||
- [@kylec32](https://github.com/kylec32) | ||
|
||
- [camiloribeiro](https://github.com/camiloribeiro) | ||
- [@lauraionescu](https://github.com/lauraionescu) | ||
|
||
- [shahadarsh](https://github.com/shahadarsh) | ||
- [@setchy](https://github.com/setchy) | ||
|
||
- [filipesabella](https://github.com/filipesabella) | ||
- [@shahadarsh](https://github.com/shahadarsh) | ||
|
||
- [jaiganeshg](https://github.com/jaiganeshg) | ||
- [@thenano](https://github.com/thenano) | ||
|
||
- [@trecenti](https://github.com/trecenti) |
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
Oops, something went wrong.