-
Notifications
You must be signed in to change notification settings - Fork 60
52 lines (52 loc) · 1.59 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
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: 18.x
- name: Install Yarn
run: npm install -g yarn
- name: Install deps
run: |
yarn install
- name: Install acceptance test dep
run: |
yarn install --cwd=acceptance-tests
- name: Verify package dependencies
run: |
npx depcheck --ignores="semver,@types/*"
- name: Lint
run: |
yarn lint
- name: Circular dependency check
run: |
yarn run madge --circular .
- name: TS Build
run: |
yarn build
- 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 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build Failure Slack Report
uses: ravsamhq/notify-slack-action@v2
if: ${{ always() && github.ref_name == 'main' }}
with:
status: ${{ job.status }}
notify_when: 'failure'
mention_groups: 'S07FLKPAPAS'
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 }}