This repository has been archived by the owner on Dec 7, 2024. It is now read-only.
PR 템플릿 업데이트 #453
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GCMS-CI | |
on: | |
pull_request: | |
branches: | |
- 'develop' | |
- 'master' | |
jobs: | |
GCMS-CI: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- run: yarn install --frozen-lockfile | |
- run: yarn build | |
- run: yarn test | |
- name: Success notification to discord | |
uses: sarisia/[email protected] | |
if: ${{ success() }} | |
with: | |
webhook: ${{ secrets.WEBHOOK }} | |
title: "GCMS CI successfully" | |
description: "CI success" | |
content: "success!!!\n<@${{ secrets.DISCORD_ID1 }}> <@${{ secrets.DISCORD_ID2 }}> <@${{ secrets.DISCORD_ID3 }}> pr check" | |
username: GCMS CI bot | |
url: "https://github.com/GSM-MSG/GCMS-FrontEnd-V2" | |
color: 4CAF50 | |
avatar_url: ${{ secrets.AVATAR_URL }} | |
- name: Failure notification to discord | |
uses: sarisia/[email protected] | |
if: ${{ failure() }} | |
with: | |
webhook: ${{ secrets.WEBHOOK }} | |
title: "GCMS CI failed" | |
description: "CI failed" | |
content: "ㅆㅂ..." | |
username: GCMS CI bot | |
url: "https://github.com/GSM-MSG/GCMS-FrontEnd-V2" | |
color: e74c3c | |
avatar_url: ${{ secrets.AVATAR_URL }} | |