fix: update tsconfig.json to include rootDir and types options #17
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: CI - sentinelOS | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install root deps | |
| run: npm ci | |
| - name: Install server deps | |
| working-directory: ./server | |
| run: npm ci | |
| - name: Install client deps | |
| working-directory: ./client | |
| run: npm ci | |
| - name: Run server build | |
| working-directory: ./server | |
| run: npm run build --if-present | |
| - name: Run client build | |
| working-directory: ./client | |
| run: npm run build --if-present | |
| - name: Run server tests | |
| working-directory: ./server | |
| run: npm test --if-present | |
| - name: Run client tests | |
| working-directory: ./client | |
| run: npm test --if-present |