Skip to content

Commit fb09145

Browse files
arcanismerceyz
andauthored
Use Yarn 4 RC on our CI (#109)
* Upgrades to Yarn 4 RC * Removes the cache check from the CI * Simplifies CI * Revert "Simplifies CI" This reverts commit b3a05f1. * Calls install before running the typecheck * Runs build * No need for the PnP files since we don't use zero-install * Adds explicit `--immutable` + cache * Apply suggestions from code review Co-authored-by: Kristoffer K. <[email protected]> Co-authored-by: Kristoffer K. <[email protected]>
1 parent 2b7180e commit fb09145

File tree

639 files changed

+1946
-19515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

639 files changed

+1946
-19515
lines changed

.github/workflows/ci.yml

+28-7
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,27 @@ jobs:
1919
- uses: actions/setup-node@v3
2020
with:
2121
node-version: 14
22+
23+
- name: Get the Yarn cache directory path
24+
id: yarn-cache-dir-path
25+
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
2226

23-
- name: "Check that the cache files are consistent with their remote sources"
24-
run: |
25-
git diff --exit-code --quiet HEAD^ -- .yarn/cache || \
26-
corepack yarn --immutable --immutable-cache --check-cache
27-
if: |
28-
github.event.pull_request != ''
27+
- uses: actions/cache@v3
28+
with:
29+
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
30+
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
31+
restore-keys: |
32+
${{runner.os}}-yarn-
33+
34+
- run: corepack yarn install --immutable
35+
- run: corepack yarn build # We need the stubs to run the tests
2936

3037
- name: "Check for type errors"
3138
run: corepack yarn typecheck
3239

40+
- name: "Check for linting errors"
41+
run: corepack yarn lint
42+
3343
build:
3444
strategy:
3545
fail-fast: false
@@ -53,7 +63,18 @@ jobs:
5363
with:
5464
node-version: ${{matrix.node}}.x
5565

66+
- name: Get the Yarn cache directory path
67+
id: yarn-cache-dir-path
68+
run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)"
69+
70+
- uses: actions/cache@v3
71+
with:
72+
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
73+
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
74+
restore-keys: |
75+
${{runner.os}}-yarn-
76+
5677
- run: corepack yarn install --immutable
5778
- run: corepack yarn build # We need the stubs to run the tests
58-
- run: corepack yarn lint
79+
5980
- run: corepack yarn test

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
!/.yarn/patches
44
!/.yarn/releases
55
!/.yarn/sdks
6+
/.pnp.*
7+
68
/dist
79
/package.tgz
810

.pnp.cjs

-17,320
This file was deleted.

.pnp.loader.mjs

-271
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-23.1 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)