-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (54 loc) · 2.05 KB
/
PR-checks-shared.yml
File metadata and controls
65 lines (54 loc) · 2.05 KB
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
58
59
60
61
62
63
64
65
name: PR Checks - "shared"
on:
pull_request:
paths:
- "shared/**"
jobs:
PRcheck:
name: check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Nodejs
uses: actions/setup-node@v1
- name: Install dependencies
uses: bahmutov/npm-install@v1 # install dependencies using cache
- name: Lint Check shared module - shared
id: lint
run: |
cd shared
yarn lint
env:
CI: true
- name: Build Check shared module - shared
id: build
run: |
cd shared
yarn build
env:
CI: true
- name: Create lint check failure comment
if: ${{ steps.lint.outcome == 'failure' }}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
[**ESLint Failed**]
Check your code on your local environment.
코드 편집 도구로 돌아가, `shared` 폴더에서 `yarn lint`를 통해 eslint 검사를 실행하고
규칙에 맞지 않는 부분을 확인하세요.
[Github Actions 탭에서 ESlint 로그 확인하기](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
reactions: "+1"
- name: Create build check failure comment
if: ${{ steps.build.outcome == 'failure' }}
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
[**Build Failed**]
Check your code on your local environment.
모듈 빌드에 실패했습니다.
코드 편집 도구로 돌아가, `shared` 폴더에서 `yarn build`를 통해 모듈 빌드를 실행하여 오류를 확인하세요.
[Github Actions 탭에서 Build 로그 확인하기](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
reactions: "+1"