Skip to content

.github/workflows/tests-cache-yarn-failed.yaml #6

.github/workflows/tests-cache-yarn-failed.yaml

.github/workflows/tests-cache-yarn-failed.yaml #6

on:
workflow_dispatch:
jobs:
test_matrix:
timeout-minutes: 1
strategy:
fail-fast: false
matrix:
package-manager:
- [email protected]
- [email protected]
pre-actions-setup-node:
- ':'
- corepack enable
actions-setup-node-cache:
- ''
- npm
- yarn
exclude:
- package-manager: [email protected]
actions-setup-node-cache: yarn
- package-manager: [email protected]
actions-setup-node-cache: npm
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: sed --in-place --regexp-extended 's/("packageManager":\s*")[^"]+/\1${{ matrix.package-manager }}/' package.json
- run: ${{ matrix.pre-actions-setup-node }}
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: ${{ matrix.actions-setup-node-cache }}
- run: corepack enable