updated team #68
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: Build and Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.12' | |
| - name: Install client dependencies | |
| run: | | |
| cd client && npm ci | |
| - name: Install server dependencies | |
| run: | | |
| cd server && npm ci | |
| - name: Build client | |
| run: | | |
| cd client && npm run build | |
| - name: Build server | |
| run: | | |
| cd server && npm run build | |
| - name: Run tests (if available) | |
| run: | | |
| npm run test || echo "No tests configured" |