Skip to content

Commit

Permalink
[IN-4716] Add deploy_main job to circleci config (#83)
Browse files Browse the repository at this point in the history
* Add deploy_main job to circleci config

* Adds update
  • Loading branch information
kennyshittu authored May 7, 2024
1 parent 13fc718 commit 0a27e42
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ jobs:
- image: cypress/base:latest
environment:
BASH_ENV: ~/.env
steps:
- checkout
- restore_cache:
keys:
- v1-npm-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-npm-deps-{{ .Branch }}
- v1-npm-deps-
- run: yarn install
- run:
name: Jest tests
command: yarn test
- run: yarn build
- cypress_tests
deploy_main:
docker:
- image: cimg/node:20.7.0
environment:
BASH_ENV: ~/.env
steps:
- checkout
- run:
Expand All @@ -66,9 +84,6 @@ jobs:
- v1-npm-deps-{{ .Branch }}
- v1-npm-deps-
- run: yarn install
- run:
name: Jest tests
command: yarn test
- run:
name: Generate license text
command: yarn licenses generate-disclaimer --silent > src/generated/licenses.txt
Expand All @@ -80,7 +95,6 @@ jobs:
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i ~/.local/aws-cli -b ~/.local/bin
- cypress_tests
- run:
name: Sync to s3
command: |
Expand All @@ -99,9 +113,14 @@ workflows:
branches:
ignore:
- main
build_main:
build_and_deploy_main:
jobs:
- build_main:
filters:
branches:
only:
- main
- deploy_main:
context:
- aws-artifacts
filters:
Expand Down

0 comments on commit 0a27e42

Please sign in to comment.