@integromat/proto-oauth
Version:
Integromat OAuth Proto-Classes
58 lines (53 loc) • 1.3 kB
YAML
version: 2.1
orbs:
node: circleci/node@5.2.0
sonarqube: integromat/sonarqube-orb@2.1.1
testing-orb: integromat/testing-orb@1.2
defaults:
docker:
- image: circleci/node:16
jobs:
test:
<<:
steps:
- checkout
- run:
name: Packages audit
command: |
npx audit-ci@^6 --config ./audit-ci.jsonc
- run:
name: Add npm token
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- node/install-packages
- testing-orb/run_tests:
test_type: integration
command: npm run test
- store_artifacts:
path: coverage/integration
- store_test_results:
path: coverage/integration/junit.xml
- testing-orb/upload_and_comment_coverage:
test_type: integration
- persist_to_workspace:
root: ~/
paths:
- project/coverage
sonarqube:
machine:
image: ubuntu-2204:current
steps:
- checkout
- attach_workspace:
at: ~/
- sonarqube/scan
workflows:
version: 2
test:
jobs:
- test:
context:
- org-default
- testing
- sonarqube:
requires: [test]
context: sonarqube-prod