Skip to content

Commit

Permalink
[test-cache-yarn-failed]
Browse files Browse the repository at this point in the history
  • Loading branch information
esperecyan committed May 1, 2024
1 parent df096d9 commit a225b9a
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests-cache-yarn-failed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
workflow_dispatch:

jobs:
test_matrix:
timeout-minutes: 1
strategy:
fail-fast: false
matrix:
package-manager:
- npm@10.7.0
- yarn@4.1.1
pre-actions-setup-node:
- ':'
- corepack enable
actions-setup-node-cache:
- ''
- npm
- yarn
exclude:
- package-manager: npm@10.7.0
actions-setup-node-cache: yarn
- package-manager: yarn@4.1.1
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/node_modules/
/.yarn/
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"private": false,
"name": "@esperecyan/actions-setup-node-debug",
"license": "CC0-1.0",
"author": {
"name": "100の人",
"url": "https://github.com/esperecyan/actions-setup-node-debug"
},
"packageManager": "npm@10.7.0"
}
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!

__metadata:
version: 8
cacheKey: 10c0

"@esperecyan/actions-setup-node-debug@workspace:.":
version: 0.0.0-use.local
resolution: "@esperecyan/actions-setup-node-debug@workspace:."
languageName: unknown
linkType: soft

0 comments on commit a225b9a

Please sign in to comment.