cache-manager - fix: use store.deleteMany in mdel instead of per-key … #2401
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: tests | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Matrix check names must be kebab-case. GitHub otherwise reports | |
| # "test (22)", which rulesets cannot require (spaces are rejected). | |
| test-node: | |
| name: test-${{ matrix.node-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: ['22', '24', '26'] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| - name: Install Socket Firewall | |
| uses: SocketDev/action@ba6de6cc0565af1f42295590380973573297e31f # v1.3.2 | |
| with: | |
| mode: firewall-free | |
| firewall-version: "1.15.0" | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Start Test Services | |
| run: pnpm test:services:start | |
| - name: Install dependencies | |
| run: sfw pnpm install --frozen-lockfile | |
| - name: Build | |
| run: pnpm build | |
| - name: Validate Build Output | |
| run: node scripts/test-build.mjs | |
| - name: Test | |
| run: pnpm test:ci | |
| # Space-free required check (`test`) so the branch ruleset can match. | |
| test: | |
| needs: test-node | |
| if: ${{ always() && !cancelled() }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Socket Firewall | |
| uses: SocketDev/action@ba6de6cc0565af1f42295590380973573297e31f # v1.3.2 | |
| with: | |
| mode: firewall-free | |
| firewall-version: "1.15.0" | |
| - name: Require matrix success | |
| run: test "${{ needs.test-node.result }}" = "success" |