-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
32,739 additions
and
174,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,19 +14,19 @@ orbs: | |
# ------------------------- | ||
machine: | ||
pre: | ||
- mkdir ~/.cache/yarn | ||
- mkdir ~/.pnpm-store | ||
- mkdir ~/.cache/Cypress | ||
- mkdir ~/Library/Caches/Homebrew | ||
- mkdir /usr/local/Homebrew | ||
|
||
dependencies: | ||
cache_directories: | ||
- ~/.cache/yarn | ||
- ~/.pnpm-store | ||
- ~/.cache/Cypress | ||
- /usr/local/Homebrew | ||
- ~/Library/Caches/Homebrew | ||
override: | ||
- yarn install | ||
- pnpm install | ||
- brew install | ||
|
||
defaults: &defaults | ||
|
@@ -52,29 +52,29 @@ executors: | |
# COMMANDS | ||
# ------------------------- | ||
commands: | ||
run-yarn-install: | ||
run-pnpm-install: | ||
parameters: | ||
os: | ||
type: string | ||
steps: | ||
- restore_cache: | ||
name: Restore Yarn Package Cache | ||
name: Restore pnpm Package Cache | ||
keys: | ||
- node-deps-{{ arch }}-v2-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }} | ||
- pnpm-packages-{{ arch }}-{{ checksum "pnpm-lock.yaml" }} | ||
- run: | ||
name: Install dependencies | ||
command: yarn install --prefer-offline --frozen-lockfile --non-interactive --cache-folder ~/.cache/yarn | ||
name: Install pnpm package manager | ||
command: | | ||
corepack enable | ||
corepack prepare pnpm@latest-8 --activate | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
pnpm install | ||
- save_cache: | ||
name: Save Yarn Package Cache | ||
key: node-deps-{{ arch }}-v2-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }} | ||
name: Save pnpm Package Cache | ||
key: pnpm-packages-{{ arch }}-{{ checksum "pnpm-lock.yaml" }} | ||
paths: | ||
- ~/.cache/yarn | ||
- ~/.cache/Cypress | ||
install-pnpm: | ||
steps: | ||
- run: | ||
name: Install PNPM | ||
command: npm install --prefix=$HOME/.local -g [email protected] | ||
- node_modules | ||
|
||
setup: | ||
parameters: | ||
|
@@ -114,13 +114,8 @@ commands: | |
- node/install: | ||
# Use LTS version | ||
node-version: '' | ||
- run-yarn-install: | ||
- run-pnpm-install: | ||
os: << parameters.os >> | ||
- when: | ||
condition: | ||
equal: [<< parameters.os >>, linux] | ||
steps: | ||
- install-pnpm | ||
|
||
# ------------------------- | ||
# JOBS | ||
|
@@ -162,7 +157,7 @@ jobs: | |
os: << parameters.os >> | ||
- run: | ||
name: Agent | ||
command: npx nx-cloud start-agent | ||
command: pnpm nx-cloud start-agent | ||
no_output_timeout: 60m | ||
|
||
# ------------------------- | ||
|
@@ -184,29 +179,29 @@ jobs: | |
os: linux | ||
- nx/set-shas: | ||
main-branch-name: 'master' | ||
- run: npx nx-cloud start-ci-run --stop-agents-after="e2e" | ||
- run: pnpm nx-cloud start-ci-run --stop-agents-after="e2e" | ||
- run: | ||
name: Check Documentation | ||
command: npx nx documentation --no-dte | ||
command: pnpm nx documentation --no-dte | ||
no_output_timeout: 20m | ||
- run: | ||
name: Run Checks/Lint/Test/Build | ||
no_output_timeout: 60m | ||
command: | | ||
pids=() | ||
npx nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD & | ||
pnpm nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD & | ||
pids+=($!) | ||
npx nx run-many -t check-imports check-commit check-lock-files depcheck --parallel=1 --no-dte & | ||
pnpm nx run-many -t check-imports check-commit check-lock-files depcheck --parallel=1 --no-dte & | ||
pids+=($!) | ||
yarn nx affected --target=lint --base=$NX_BASE --head=$NX_HEAD --parallel=3 & | ||
pnpm nx affected --target=lint --base=$NX_BASE --head=$NX_HEAD --parallel=3 & | ||
pids+=($!) | ||
yarn nx affected --target=test --base=$NX_BASE --head=$NX_HEAD --parallel=1 & | ||
pnpm nx affected --target=test --base=$NX_BASE --head=$NX_HEAD --parallel=1 & | ||
pids+=($!) | ||
(yarn nx affected --target=build --base=$NX_BASE --head=$NX_HEAD --parallel=3 && | ||
npx nx affected --target=e2e --base=$NX_BASE --head=$NX_HEAD --parallel=1) & | ||
(pnpm nx affected --target=build --base=$NX_BASE --head=$NX_HEAD --parallel=3 && | ||
pnpm nx affected --target=e2e --base=$NX_BASE --head=$NX_HEAD --parallel=1) & | ||
pids+=($!) | ||
for pid in "${pids[@]}"; do | ||
|
@@ -233,7 +228,7 @@ jobs: | |
name: Run E2E Tests for macOS | ||
# FIXME: remove --exclude=e2e-detox once we have a fix for the detox tests | ||
command: | | ||
npx nx affected -t e2e-macos --parallel=1 --exclude=e2e-detox | ||
pnpm nx affected -t e2e-macos --parallel=1 --exclude=e2e-detox | ||
no_output_timeout: 45m | ||
|
||
# ------------------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
strict-peer-dependencies=false | ||
auto-install-peers=true | ||
node-linker=hoisted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.