chore: Upgrade eslint monorepo to v9.15.0 #2359
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/[email protected] | |
with: | |
filter: tree:0 | |
- uses: pnpm/[email protected] | |
- name: Use Node.js ${{ matrix.node }} | |
uses: actions/[email protected] | |
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/[email protected] | |
with: | |
filter: tree:0 | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
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/[email protected] | |
with: | |
filter: tree:0 | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
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/[email protected] | |
with: | |
filter: tree:0 | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version-file: 'package.json' | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test | |
types: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
filter: tree:0 | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version-file: 'package.json' | |
cache: 'pnpm' | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm test:types |