# Gateway rails unit + HTTP integration tests (dbis_core submodule) name: dbis-core-gateway-ci on: push: paths: - 'dbis_core/package.json' - 'dbis_core/package-lock.json' - 'dbis_core/jest.config.js' - 'dbis_core/jest.gateway-http.config.js' - 'dbis_core/src/core/gateway/**' - 'dbis_core/src/workers/gateway-outbox.worker.ts' - 'dbis_core/src/workers/run-gateway-outbox-worker.ts' - 'dbis_core/src/__tests__/unit/core/gateway/**' - 'dbis_core/src/__tests__/integration/api/gateway-rails-http.integration.test.ts' - 'dbis_core/src/__tests__/gateway-http-env-setup.ts' - 'dbis_core/src/__tests__/utils/gateway-http-test-app.ts' - '.github/workflows/dbis-core-gateway-ci.yml' pull_request: paths: - 'dbis_core/package.json' - 'dbis_core/package-lock.json' - 'dbis_core/jest.config.js' - 'dbis_core/jest.gateway-http.config.js' - 'dbis_core/src/core/gateway/**' - 'dbis_core/src/workers/gateway-outbox.worker.ts' - 'dbis_core/src/workers/run-gateway-outbox-worker.ts' - 'dbis_core/src/__tests__/unit/core/gateway/**' - 'dbis_core/src/__tests__/integration/api/gateway-rails-http.integration.test.ts' - 'dbis_core/src/__tests__/gateway-http-env-setup.ts' - 'dbis_core/src/__tests__/utils/gateway-http-test-app.ts' - '.github/workflows/dbis-core-gateway-ci.yml' defaults: run: working-directory: dbis_core jobs: test-gateway: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' cache-dependency-path: dbis_core/package-lock.json - name: Install dependencies run: npm ci - name: Gateway tests (unit + integration) run: npm run test:gateway