Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to yarn 4 #3887

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft
2 changes: 1 addition & 1 deletion .github/workflows/daily-docker-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ on:

jobs:
call-refresh-docker-cache-workflow:
uses: terascope/workflows/.github/workflows/refresh-docker-cache.yml@f5e098fa861fe7744fa61842e82124f806364be9
uses: terascope/workflows/.github/workflows/refresh-docker-cache.yml@ecddc7fa5fc22826bdf921edd3a97e2e230f1fab
secrets: inherit
18 changes: 14 additions & 4 deletions .github/workflows/publish-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ jobs:
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false --silent"

- name: Publish to npm
run: yarn ts-scripts publish -t latest npm
Expand All @@ -62,7 +66,13 @@ jobs:
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

- name: Build documentation
run: ./scripts/build-documentation.sh # output in website/build
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/publish-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ jobs:
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false --silent"

- name: Publish to npm
run: yarn ts-scripts publish -t tag npm
Expand All @@ -55,12 +59,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false --silent"

- name: Publish to docker
run: yarn ts-scripts publish -t tag -n ${{ matrix.node-version }} docker
116 changes: 80 additions & 36 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,24 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ fromJSON(needs.compute-node-version-vars.outputs.NODE_VERSION_MAIN) }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

check-docker-limit-before:
uses: terascope/workflows/.github/workflows/check-docker-limit.yml@f5e098fa861fe7744fa61842e82124f806364be9
uses: terascope/workflows/.github/workflows/check-docker-limit.yml@ecddc7fa5fc22826bdf921edd3a97e2e230f1fab
secrets: inherit

cache-docker-images:
needs: check-docker-limit-before
uses: terascope/workflows/.github/workflows/cache-docker-images.yml@f5e098fa861fe7744fa61842e82124f806364be9
uses: terascope/workflows/.github/workflows/cache-docker-images.yml@ecddc7fa5fc22826bdf921edd3a97e2e230f1fab
secrets: inherit

linux-unit-tests:
Expand All @@ -68,12 +72,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Test
run: yarn --silent test -- --suite unit --
Expand All @@ -95,7 +103,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -106,8 +120,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -142,7 +154,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -153,8 +171,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -185,12 +201,16 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ fromJSON(needs.compute-node-version-vars.outputs.NODE_VERSION_MAIN) }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Lint codebase
run: yarn lint
Expand All @@ -215,7 +235,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -226,8 +252,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -262,7 +286,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -273,8 +303,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -312,7 +340,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -323,8 +357,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -367,7 +399,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -378,8 +416,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -422,7 +458,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -433,8 +475,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -472,7 +512,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
# cache: 'yarn'

- name: Install Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn install

# we login to docker to avoid docker pull limit rates
- name: Login to Docker Hub
Expand All @@ -483,8 +529,6 @@ jobs:

- name: Install and build packages
run: yarn setup
env:
YARN_SETUP_ARGS: "--prod=false"

- name: Create Docker Image List
run: |
Expand Down Expand Up @@ -529,5 +573,5 @@ jobs:
elasticsearch-store-tests,
teraslice-elasticsearch-tests
]
uses: terascope/workflows/.github/workflows/check-docker-limit.yml@f5e098fa861fe7744fa61842e82124f806364be9
uses: terascope/workflows/.github/workflows/check-docker-limit.yml@ecddc7fa5fc22826bdf921edd3a97e2e230f1fab
secrets: inherit
Binary file added .yarn/install-state.gz
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/jest-config/build/ValidConfig.js b/node_modules/jest-config/build/ValidConfig.js
index 0c1250c..67e586e 100644
--- a/node_modules/jest-config/build/ValidConfig.js
+++ b/node_modules/jest-config/build/ValidConfig.js
diff --git a/build/ValidConfig.js b/build/ValidConfig.js
index 0c1250c4da55984ef3ef0befb3bbf3c2133fe912..67e586e0f664629e18553927325f912c1b25a409 100644
--- a/build/ValidConfig.js
+++ b/build/ValidConfig.js
@@ -331,6 +331,7 @@ const initialProjectOptions = {
['/__tests__/\\.test\\.[jt]sx?$', '/__tests__/\\.spec\\.[jt]sx?$']
),
Expand Down
Loading
Loading