Merge pull request #1143 from HubSpot/hs-project-add-fixes #4406
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
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: Install deps | |
run: | | |
yarn install | |
- name: Bootstrap packages | |
run: | | |
yarn lerna bootstrap | |
- name: Force local package symlinks | |
run: | | |
yarn lerna link --force-local | |
- name: Verify package dependencies | |
run: | | |
yarn check-deps | |
- name: Lint | |
run: | | |
yarn lint | |
- name: Circular dependency check | |
run: | | |
yarn run madge --circular packages | |
- name: Test | |
run: | | |
yarn test | |
- name: Test-CLI | |
run: | | |
yarn test-cli | |
env: | |
PORTAL_ID: ${{ secrets.ACCEPTANCE_TEST_PORTAL_ID }} | |
PERSONAL_ACCESS_KEY: ${{ secrets.ACCEPTANCE_TEST_PERSONAL_ACCESS_KEY }} | |
- name: Build Failure Slack Report | |
uses: ravsamhq/notify-slack-action@v2 | |
if: ${{ always() && github.ref_name == 'main' }} | |
with: | |
status: ${{ job.status }} | |
notify_when: 'failure' | |
notification_title: 'CLI build failure' | |
message_format: '{emoji} *Build* {status_message} in <{repo_url}|{repo}> on <{commit_url}|{commit_sha}>"' | |
footer: '<{run_url}|View Run>' | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} |