ops: add persistent GraphQL backend service #4
Workflow file for this run
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: Backend quality gate | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| backend-checks: | |
| name: Backend checks | |
| runs-on: [self-hosted, linux, x64, t07-project-2] | |
| timeout-minutes: 15 | |
| defaults: | |
| run: | |
| working-directory: server | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: npm | |
| cache-dependency-path: server/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Check types including scripts and tests | |
| run: npm run typecheck | |
| - name: Run data, migration and GraphQL tests | |
| run: npm run test:data | |
| - name: Build backend | |
| run: npm run build |