Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ws-071211 committed Oct 21, 2024
1 parent ebc5a49 commit 0a95343
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/MINDWAY-CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Mindway CI

on:
pull_request:
branches: ['*']

jobs:
CI:
runs-on: ubuntu-latest

steps:
- name: Checkout

uses: actions/checkout@v4

- name: Set up Node.js

uses: actions/setup-node@v2

with:
node-version: '20'

- name: Install dependencies

run: yarn install

- name: Run Next.js build

run: yarn build

- name: Success Discord Notification

uses: sarisia/actions-status-discord@v1

if: ${{ success() }}

with:
title: 'Mindway-CI Successful!!'

webhook: ${{ secrets.DISCORD_WEBHOOK }}

status: ${{ job.status }}

description: 'CI success'

content: "<@${{ secrets.DISCORD_ID1 }}> <@${{ secrets.DISCORD_ID2 }}>\n pr 확인 부탁드립니다!!"

color: 4CAF50

username: Mindway-CI Bot

url: https://github.com/Team-MindWay/MindWay-v2-Front

- name: Failed Discord Notification

uses: sarisia/actions-status-discord@v1

if: ${{ failure() }}

with:
title: 'Mindway-CI Failure'

webhook: ${{ secrets.DISCORD_WEBHOOK }}

status: ${{ job.status }}

description: 'CI Failure'

content: '실패!'

color: e74c3c

username: Mindway-CI Bot

url: https://github.com/Team-MindWay/MindWay-v2-Front

0 comments on commit 0a95343

Please sign in to comment.