This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Deploy #798
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: plateeRAG_CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x, 22.x, 24.x] | |
| defaults: | |
| run: | |
| working-directory: ./ | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Create .env file | |
| run: | | |
| echo "NEXT_PUBLIC_BACKEND_HOST=${{ secrets.NEXT_PUBLIC_BACKEND_HOST }}" > .env | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build Next.js project | |
| run: npm run build | |
| # - name: Run tests | |
| # run: npm test | |
| - name: Start Next.js server and check status | |
| run: | | |
| npm run start & # 백그라운드에서 서버 실행 | |
| sleep 5 # 서버가 시작될 때까지 잠시 대기 | |
| curl -f http://localhost:3000 # localhost:3000에 접속하여 HTTP 200 응답 확인 |