-
Notifications
You must be signed in to change notification settings - Fork 7
80 lines (63 loc) ยท 2.43 KB
/
FE_dev_pr_checker.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Darass PR Checker - dev [FE]
on:
pull_request:
types: [ opened, edited ]
branches: [ main ]
jobs:
build:
runs-on: [self-hosted, front]
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install
- name: Setup yarn
run: npm install -g yarn
- name: Install Dependencies - comment
run: yarn install
working-directory: ./frontend/reply-module
- name: Test - comment
run: yarn test
working-directory: ./frontend/reply-module
- name: Build - comment
run: yarn build
working-directory: ./frontend/reply-module
env:
KAKAO_REST_API_KEY: ${{ secrets.KAKAO_REST_API_KEY }}
KAKAO_JAVASCRIPT_API_KEY: ${{ secrets.KAKAO_JAVASCRIPT_API_KEY }}
SENTRY_REPLY_MODULE_DSN: ${{ secrets.SENTRY_REPLY_MODULE_DSN }}
NAVER_CLIENT_ID: ${{ secrets.NAVER_CLIENT_ID }}
- name: Install Dependencies - project
run: yarn install
working-directory: ./frontend/manage
- name: Test - project
run: yarn test
working-directory: ./frontend/manage
- name: Build - project
run: yarn build
working-directory: ./frontend/manage
env:
KAKAO_REST_API_KEY: ${{ secrets.KAKAO_REST_API_KEY }}
KAKAO_JAVASCRIPT_API_KEY: ${{ secrets.KAKAO_JAVASCRIPT_API_KEY }}
SENTRY_MANAGE_PAGE_DSN: ${{ secrets.SENTRY_MANAGE_PAGE_DSN }}
NAVER_CLIENT_ID: ${{ secrets.NAVER_CLIENT_ID }}
- name: Install Dependencies - deploy script
run: yarn install
working-directory: ./frontend/deploy-script
- name: Build - deploy script
run: yarn build
working-directory: ./frontend/deploy-script
- name: build result to slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo, message, commit, author, action, eventName, ref, workflow, job, took
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FRONT }}
if: always()