Repository navigation
chore(deps): bump the production group across 1 directory with 5 updates #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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Lint, build and test (Node ${{ matrix.node-version }}, NestJS ${{ matrix.nestjs }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20, 22, 24] | |
| nestjs: [11] | |
| include: | |
| # NestJS 12 is ESM-only; Jest can only require() it on Node >= 24.9 | |
| - node-version: 24 | |
| nestjs: 12 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Lint | |
| run: pnpm exec biome ci . | |
| - name: Build | |
| run: pnpm run build --filter=@nestjs-modules/mailer | |
| - name: Use NestJS ${{ matrix.nestjs }} | |
| if: matrix.nestjs != 11 | |
| run: >- | |
| pnpm --filter @nestjs-modules/mailer add -D | |
| @nestjs/common@^${{ matrix.nestjs }} | |
| @nestjs/core@^${{ matrix.nestjs }} | |
| @nestjs/testing@^${{ matrix.nestjs }} | |
| - name: Unit tests (100% coverage required) | |
| run: pnpm --filter @nestjs-modules/mailer run test:cov | |
| env: | |
| NODE_OPTIONS: ${{ matrix.nestjs == 12 && '--experimental-vm-modules' || '' }} | |
| audit: | |
| name: Dependency audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| # No pnpm cache: this job never installs, so the store path would not | |
| # exist and the post-job cache save would fail. | |
| node-version: 24 | |
| - name: Audit dependencies | |
| run: pnpm audit --audit-level=low |