chore: Upgrade eslint monorepo to v9.17.0 #2375
This file contains 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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 18.x | |
- 20.x | |
- 22.x | |
mongodb: | |
- 6.0.19 | |
- 7.0.15 | |
- 8.0.3 | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
with: | |
filter: tree:0 | |
- uses: pnpm/action-setup@v4.0.0 | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4.0.4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: node -v | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test:build | |
env: | |
MONGOMS_VERSION: ${{ matrix.mongodb }} | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
with: | |
filter: tree:0 | |
- uses: pnpm/action-setup@v4.0.0 | |
- uses: actions/setup-node@v4.0.4 | |
with: | |
node-version-file: 'package.json' | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build:docs && git diff | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
with: | |
filter: tree:0 | |
- uses: pnpm/action-setup@v4.0.0 | |
- uses: actions/setup-node@v4.0.4 | |
with: | |
node-version-file: 'package.json' | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm lint:ci && pnpm pretty:ci | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
with: | |
filter: tree:0 | |
- uses: pnpm/action-setup@v4.0.0 | |
- uses: actions/setup-node@v4.0.4 | |
with: | |
node-version-file: 'package.json' | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test | |
types: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
with: | |
filter: tree:0 | |
- uses: pnpm/action-setup@v4.0.0 | |
- uses: actions/setup-node@v4.0.4 | |
with: | |
node-version-file: 'package.json' | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test:types |