[feat] 대기방 생성/삭제/업데이트/입장 로직 추가 #91
This file contains hidden or 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: Continuous Integration | |
| on: | |
| pull_request: | |
| branches: [develop] | |
| permissions: | |
| contents: write | |
| jobs: | |
| ci-pr: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. GitHub 저장소 코드 체크아웃 | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| # 2. Node.js 설치 (AsyncAPI CLI 실행용) | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| # 3. AsyncAPI Generator 전역 설치 | |
| - name: Install AsyncAPI Generator | |
| run: npm install -g @asyncapi/generator | |
| # 4. AsyncAPI → HTML 문서 자동 생성 | |
| - name: Generate HTML Docs | |
| run: | | |
| npx @asyncapi/generator asyncapi.yaml @asyncapi/html-template -o src/main/resources/static/docs | |
| # 5. 문서 변경사항 커밋 & 푸시 | |
| - name: Commit and Push Generated Docs | |
| run: | | |
| git config --global user.name "github-actions" | |
| git config --global user.email "actions@github.com" | |
| git add src/main/resources/static/docs | |
| git diff --cached --quiet || git commit -m "Auto-update AsyncAPI docs" | |
| git push || echo "Nothing to push" |