-
Notifications
You must be signed in to change notification settings - Fork 63
53 lines (51 loc) · 1.53 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build Failure Slack Report
if: ${{ github.ref == 'refs/heads/master' }}
uses: ravsamhq/notify-slack-action@master
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}
- 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 }}
CLI_PATH: ${{ secrets.ACCEPTANCE_TEST_CLI_PATH }}
PERSONAL_ACCESS_KEY: ${{ secrets.ACCEPTANCE_TEST_PERSONAL_ACCESS_KEY }}
CLIENT_ID: ${{ secrets.ACCEPTANCE_TEST_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.ACCEPTANCE_TEST_CLIENT_SECRET }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}