Skip to content

fix: harden v3 data task release #185

fix: harden v3 data task release

fix: harden v3 data task release #185

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['18.x', '20.x', '22.x']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Restore MongoDB memory-server binaries
uses: actions/cache@v4
with:
path: .cache/mongodb-memory-server/binaries
key: mongodb-memory-server-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/validation/server-matrix-config.cjs') }}
- name: Check docs example matrix
run: npm run check:docs-examples
- name: Type check
run: npm run type-check
- name: Enforce file-size guard
run: npm run check:sizes:strict
- name: Run full test suite
run: npm test
- name: Run compatibility guard
run: npm run test:compatibility
release-gate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Restore MongoDB memory-server binaries
uses: actions/cache@v4
with:
path: .cache/mongodb-memory-server/binaries
key: mongodb-memory-server-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('scripts/validation/server-matrix-config.cjs') }}
- name: Run the complete release gate
run: npm run release:preflight