Question service enhancement (#26) #62
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 (backend - execution service) | |
| on: | |
| pull_request: | |
| branches: [dev, staging] | |
| paths: | |
| - "backend/execution-service/**" | |
| - "pnpm-lock.yaml" | |
| - "package.json" | |
| - ".github/workflows/ci-execution-service.yml" | |
| push: | |
| branches: [dev, staging] | |
| paths: | |
| - "backend/execution-service/**" | |
| - "pnpm-lock.yaml" | |
| - "package.json" | |
| - ".github/workflows/ci-execution-service.yml" | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-test: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| env: | |
| CI: true | |
| services: | |
| mongodb: | |
| image: mongo:8 | |
| ports: | |
| - 27017:27017 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20.x" | |
| - name: Enable Corepack & pin pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare [email protected] --activate | |
| pnpm -v | |
| - name: Install deps (workspace root) | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint (execution service) | |
| run: pnpm --filter execution-service lint | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: backend/execution-service | |
| file: backend/execution-service/Dockerfile.execution | |
| push: false | |
| tags: execution-service:test | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |