mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
chore: enable Yarn 4 on CI (#1525)
* chore: enable Yarn 4 on CI (attempt 1) * chore: attempt 2 * chore: attempt 3 * chore: attempt 4 * chore: attempt 5 * chore: fix website * chore: fix attempt 6'
This commit is contained in:
committed by
GitHub
parent
817d4edb75
commit
80e64cff56
@@ -7,14 +7,19 @@ runs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- name: Cache deps
|
||||
id: yarn-cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ./node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
|
||||
path: |
|
||||
./node_modules
|
||||
.yarn/install-state.gz
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
|
||||
${{ runner.os }}-yarn-
|
||||
|
||||
- name: Install deps
|
||||
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
||||
|
||||
@@ -7,14 +7,16 @@ runs:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- name: Cache website deps
|
||||
id: yarn-cache-website
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ./website/node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}-website
|
||||
path: |
|
||||
./website/node_modules
|
||||
./website/yarn/install-state.gz
|
||||
key: website-${{ runner.os }}-yarn-${{ hashFiles('./website/yarn.lock') }}
|
||||
|
||||
- name: Install website deps
|
||||
if: steps.yarn-cache-website.outputs.cache-hit != 'true'
|
||||
|
||||
@@ -19,4 +19,3 @@ build
|
||||
# Ignore lock files in examples for now
|
||||
examples/**/yarn.lock
|
||||
.docusaurus
|
||||
|
||||
|
||||
+893
File diff suppressed because one or more lines are too long
@@ -1 +1,5 @@
|
||||
enableGlobalCache: true
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.0.1.cjs
|
||||
|
||||
+893
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
yarnPath: .yarn/releases/yarn-4.0.1.cjs
|
||||
Reference in New Issue
Block a user