Skip to content

Commit 39187e4

Browse files
authored
ci: test in Yarn Berry PnP
1 parent fc38e7f commit 39187e4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [windows-latest, macOS-latest, ubuntu-latest]
18+
yarn: [classic, berry]
1819
steps:
1920
- name: Fix git checkout line endings
2021
run: git config --global core.autocrlf input
@@ -29,7 +30,11 @@ jobs:
2930
run: |
3031
npm install -g npm@8
3132
- name: Install
33+
if: matrix.yarn == 'classic'
3234
run: yarn install
35+
- name: Install with berry
36+
if: matrix.yarn == 'berry'
37+
run: yarn set version berry && yarn install
3338
- name: Lint
3439
run: yarn lint
3540
- name: Ensure packages in sync
@@ -44,6 +49,7 @@ jobs:
4449
strategy:
4550
matrix:
4651
os: [windows-latest, macOS-latest, ubuntu-20.04]
52+
yaen: [classic, berry]
4753
steps:
4854
- name: Fix git checkout line endings
4955
run: git config --global core.autocrlf input
@@ -71,7 +77,11 @@ jobs:
7177
node-version: 14.x
7278
cache: yarn
7379
- name: Install
80+
if: matrix.yarn == 'classic'
7481
run: yarn install --frozen-lockfile
82+
- name: Install with berry
83+
if: matrix.yarn == 'berry'
84+
run: yarn set version berry && yarn install
7585
- name: Build
7686
run: yarn build
7787
- name: Test

0 commit comments

Comments
 (0)