Skip to content

Commit

Permalink
Update build config.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamRClark committed Jun 2, 2021
1 parent 8445e04 commit 326ca0f
Showing 1 changed file with 21 additions and 31 deletions.
52 changes: 21 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,44 @@ orbs: # declare what orbs we are going to use
version: 2.1 # using 2.1 provides access to orbs and other features

jobs:
build:
build-api:
executor: node/default
working_directory: ~/project
steps:
- attach_workspace:
at: .
- checkout
- run: npm install
- run: npm run build
- run: mkdir artifacts
- run: tar -zcvf artifacts/build.tar.gz --exclude artifacts .
- run: ls -al
- store_artifacts:
path: ./artifacts/build.tar.gz
destination: build_output.tar.gz
- run: # Run security audit.
halt_build_on_fail: false
command:
npm audit > ./artifacts/security_report.txt || true
- store_artifacts:
path: ./artifacts/security_report.txt
destination: security_report.txt
- run: cd ./api && npm install
- run: cd ./api && npm run build

test:
build-app:
executor: node/default
working_directory: ~/project
steps:
- browser-tools/install-chrome
- attach_workspace:
at: .
- checkout
- run: npm install
- run: npm run build
- run: npm run test-headless
- run: cd ./component && npm install
- run: cd ./component && npm run build

e2eTest:
build-test:
executor: node/default
working_directory: ~/project
steps:
- browser-tools/install-chrome
- attach_workspace:
at: .
- checkout
- run: npm install
- run: npm run build
- run: npm run e2e
- store_artifacts:
path: ./tmp

- run: cd ./component && npm install
- run: cd ./component && npm run build
- run: cd ./component && npm run test-headless
- run: cd ./component && npm run e2e

workflows:
version: 2
build_and_test:
build:
jobs:
- build
- test
- e2eTest
- build-api
- build-app
- build-test

0 comments on commit 326ca0f

Please sign in to comment.