diff --git a/.buddy/cd.yml b/.buddy/cd.yml new file mode 100644 index 0000000..3cc4544 --- /dev/null +++ b/.buddy/cd.yml @@ -0,0 +1,31 @@ +- pipeline: 'CD' + on: 'EVENT' + events: + - type: 'PUSH' + refs: + - ':default' + priority: 'HIGH' + fail_on_prepare_env_warning: true + variables: + - key: 'GH_TOKEN' + value: 'secure!hlrHPtjo86FrkValxTh7PO/CQtl/7k7pmErjcq+t7V0=.RwqkXF3OVdnoW/rURKLx9w==' + type: 'VAR' + encrypted: true + - key: 'NPM_TOKEN' + value: 'secure!JSjVxtqJWZ5+mNfIIT3aPiqpo0/xTyOoeSI6MFyViZY=.xQwDwzONGDKV1UY65gvuPw==' + type: 'VAR' + encrypted: true + actions: + - action: 'Deploy to GitHub packages' + type: 'BUILD' + region: 'us-west-2' + docker_image_name: 'smartcar/base' + docker_image_tag: '14' + execute_commands: + - 'npm ci' + - 'npx semantic-release' + volume_mappings: + - '/:/buddy/clutch-assert' + cache_base_image: true + shell: 'BASH' + integration_hash: '3DmJqAMrlNbWp9nJdyg5Kx2n6z' diff --git a/.buddy/ci.yml b/.buddy/ci.yml new file mode 100644 index 0000000..c312954 --- /dev/null +++ b/.buddy/ci.yml @@ -0,0 +1,31 @@ +- pipeline: 'CI' + on: 'EVENT' + events: + - type: 'PUSH' + refs: + - 'refs/heads/*' + priority: 'NORMAL' + fail_on_prepare_env_warning: true + variables: + - key: 'CODECOV_TOKEN' + value: 'secure!98lZjvc3CKurbTtXVlQH16aV+fYmfEppicIF3doKpeL2eYhd9snLO+0n+srjBlL+.EciZ7pJQwo9GJwIabNI6dw==' + type: 'VAR' + encrypted: true + actions: + - action: 'Build dependencies' + type: 'BUILD' + region: 'us-west-2' + docker_image_name: 'smartcar/base' + docker_image_tag: '14' + execute_commands: + - 'npm ci --ignore-scripts' + - 'npm rebuild' + - 'npm run cover' + - 'curl -Os https://uploader.codecov.io/latest/linux/codecov' + - 'chmod +x codecov' + - './codecov -t ${CODECOV_TOKEN} -R .nyc_output' + volume_mappings: + - '/:/buddy/clutch-assert' + cache_base_image: true + shell: 'BASH' + integration_hash: '3DmJqAMrlNbWp9nJdyg5Kx2n6z' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8a8be9f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -dist: focal - -language: node_js - -node_js: - - '18' - - '16' - - '14' - -cache: - directories: - - '$HOME/.npm' - - '.eslintcache' - -if: tag IS blank # do not build tags - -notifications: - slack: - secure: 'hBzS5QRVvZBjWfXFXzexJq2SRdhrN+DQyQJeRrZTgpBCCthMIPQD0VkMTJBAH9IT/ZyRSEKtQO8PwEyiEKu5v+zD1NBSYnQsm5bD70SJJL0kJHQ6h+7yXcxmrec8Q9Giyvd+fDD1zRZK0ORP/bbV00/pzdo21bvkKMZeuemrNxc3f/PeA0B1Hg5m3KkE1LfpRhERv0EFhPc7Pt2mcNVr715wvDEvB17jcsRwfr2quYnE85gJRhWoy30XPkjeiAJVZowKE6Q6GVJXivbukoFzYTpVUaLy5YG7M4WZ962Yoobvph8ro8OkMNp4T7m2snEK/q1M8M6/9xR7M+P70IO62Nfxi/Lj5pXRBEiagQIkH97hLLaT4CCjXip0j8udDx8UzIanOjfiNIfTAfjfTBNevVNfoHYuh4vC7zDsu0G4OV2AoPyLe2lb85c1qeh6tynfGN56nmz5Zuntf8xVK6EwSswzKksm7LaJRwtxkuJzBrR1Qp2kY9wEq7qeMQ2boA8B68c0fe5YQ+83gX04+U5uDdVKxgWAIqy9vaERrWuGtfK83/ox1wdIxDCnevsIkGwmsX7GYuAqpOuA0/UZZDat7XkHiqipUglfSVTm1TImQKhyWyTlbx6aIjzzpO8vkkYGptx9iBxMSYGmjig23rPC4BaFnd/r34tcBuvU5X/WpXk=' - -install: - - npm ci --ignore-scripts - - env -i PATH=$PATH npm rebuild - -script: - - npm test - - npm run cover - -after_success: - - bash <(curl -s https://codecov.io/bash) - -deploy: - provider: script - skip_cleanup: true - script: semantic-release - on: - node_js: '16' - all_branches: true