11name : ' Setup CI'
2- description : ' Set up npm , Java, and cache for CI'
2+ description : ' Set up Node , Java, and cache for CI'
33
44inputs :
55 node-version :
@@ -20,11 +20,12 @@ runs:
2020 - uses : nrwl/nx-set-shas@v4
2121 with :
2222 main-branch-name : master
23+ - uses : pnpm/action-setup@v4
2324 - name : Use Node.js ${{ inputs.node-version }}
2425 uses : actions/setup-node@v6
2526 with :
2627 node-version : ${{ inputs.node-version }}
27- cache : ' npm '
28+ cache : ' pnpm '
2829 registry-url : ' https://registry.npmjs.org'
2930 - uses : actions/setup-java@v5
3031 if : ${{ inputs.setup-java == 'true' }}
@@ -33,17 +34,18 @@ runs:
3334 java-version : 21
3435 cache : ' sbt'
3536 - uses : sbt/setup-sbt@v1
37+ if : ${{ inputs.setup-java == 'true' }}
3638 - uses : actions/cache@v4
3739 if : ${{ github.actor == 'stryker-mutator' }}
3840 with :
3941 path : .nx/cache
40- key : ${{ runner.os }}-nx-${{ inputs.node-version }}-${{ hashFiles('**/package -lock.json ') }}
42+ key : ${{ runner.os }}-nx-${{ inputs.node-version }}-${{ hashFiles('**/pnpm -lock.yaml ') }}
4143 restore-keys : |
4244 ${{ runner.os }}-nx-${{ inputs.node-version }}-
4345 ${{ runner.os }}-nx-
44- - run : npm ci
46+ - run : pnpm install --prefer-offline --frozen-lockfile
4547 shell : bash
4648 - name : Install Playwright Browsers
4749 if : ${{ inputs.setup-playwright == 'true' }}
4850 shell : bash
49- run : npm run install-browsers
51+ run : pnpm install-browsers
0 commit comments