replaced query mocks with containers #28
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: Lint and Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint-and-build: | |
| 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.x | |
| cache: 'npm' | |
| - name: Upgrade npm | |
| run: npm install -g npm@^11.10.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint API | |
| run: npm run lint -w @6oclock/api -- --max-warnings 0 | |
| - name: Lint Web | |
| run: npm run lint -w @6oclock/web -- --max-warnings 0 | |
| - name: Build API | |
| run: npm run build:api | |
| - name: Build Web | |
| run: npm run build:web |