-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (44 loc) · 1.34 KB
/
verify.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
54
55
56
57
name: Verify
on: [pull_request]
env:
NODE_VERSION: 16.x
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Verify formatting
run: yarn format:check
- name: Lint
run: yarn lint
- name: Test
run: yarn test --coverage --silent
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: yarn build
notification:
if: always()
name: notification
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- uses: technote-space/[email protected]
- uses: reside-eng/[email protected]
with:
current-status: ${{ env.WORKFLOW_CONCLUSION }}
slack-webhook: ${{ secrets.SLACK_WEBHOOK_PLATFORM_PROD }}
github-token: ${{ secrets.GITHUB_TOKEN }}