π .github ν΄λ μΆκ° #1
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: GCMS2 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: npm install | |
- name: Run Next.js build | |
run: npm run build | |
- name: Success Discord Notification | |
uses: sarisia/actions-status-discord@v1 | |
if: ${{ success() }} | |
with: | |
title: "GCMS-CI Successful!!" | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
status: ${{ job.status }} | |
description: "CI success" | |
content: "<@${{ secrets.DISCORD_ID1 }}> <@${{ secrets.DISCORD_ID2 }}> <@${{ secrets.DISCORD_ID3 }}> \n pr νμΈ λΆνλ립λλ€." | |
color: 4CAF50 | |
username: GCMS2-CI Bot | |
url: https://github.com/GSM-MSG/GCMS-FrontEnd-V3 | |
- name: Failed Discord Notification | |
uses: sarisia/actions-status-discord@v1 | |
if: ${{ failure() }} | |
with: | |
title: "GCMS-CI Failure" | |
webhook: ${{ secrets.DISCORD_WEBHOOK }} | |
status: ${{ job.status }} | |
description: "CI Failure" | |
content: "μ€ν¨.." | |
color: e74c3c | |
username: GCMS2-CI Bot | |
url: https://github.com/GSM-MSG/GCMS-FrontEnd-V3 |