Skip to content

Commit

Permalink
Merge branch 'master' into feat/splitted-project-json-command
Browse files Browse the repository at this point in the history
  • Loading branch information
gearonixx authored Nov 29, 2023
2 parents 886b03f + 2c88282 commit 4357a77
Show file tree
Hide file tree
Showing 611 changed files with 18,706 additions and 7,650 deletions.
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ jobs:
NX_E2E_RUN_E2E: 'true'
NX_CI_EXECUTION_ENV: 'linux'
steps:
- run: lscpu
- checkout
- run: npx nx-cloud@next start-ci-run --stop-agents-after="e2e"
- run: npx nx-cloud@next start-ci-run --distributes-on="8 linux-medium" --stop-agents-after="e2e"
- run:
command: |
sudo apt-get update
Expand All @@ -99,6 +100,9 @@ jobs:
os: linux
- nx/set-shas:
main-branch-name: 'master'
- run:
name: Benchmark
command: node tools/benchmark/benchmark.js
- run:
name: Check Documentation
command: pnpm nx documentation --no-dte
Expand Down Expand Up @@ -161,6 +165,11 @@ jobs:
command: |
pnpm nx affected -t e2e-macos --parallel=1 --base=$NX_BASE --head=$NX_HEAD
no_output_timeout: 45m
- run:
name: Close CI group
command: |
pnpm nx-cloud stop-all-agents
no_output_timeout: 45m

# -------------------------
# WORKFLOWS(JOBS)
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ jobs:
timeout-minutes: 45
steps:
- uses: actions/checkout@v3
if: ${{ !contains(github.ref, '-') }}
- name: Build
id: build
uses: cross-platform-actions/[email protected]
if: ${{ !contains(github.ref, '-') }}
uses: cross-platform-actions/[email protected]
env:
DEBUG: napi:*
RUSTUP_IO_THREADS: 1
Expand Down Expand Up @@ -197,9 +199,10 @@ jobs:
rm -rf node_modules
rm -rf dist
echo "KILL ALL NODE PROCESSES"
killall node
killall node || true
echo "COMPLETE"
- name: Upload artifact
if: ${{ !contains(github.ref, '-') }}
uses: actions/upload-artifact@v3
with:
name: bindings-freebsd
Expand Down Expand Up @@ -240,12 +243,15 @@ jobs:
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
pnpm nx-release --local=false $GITHUB_REF_NAME
- name: Trigger Docs Release
# Publish docs only on a full release and when publishing the latest version
if: ${{ !github.event.release.prerelease && github.event.release.target_commitish == 'master' }}
# Publish docs only on a full release
if: ${{ !github.event.release.prerelease }}
run: |
# Publish docs only when publishing the latest version
if [ "$(git describe --tags `git rev-list --tags --max-count=1`)" = "$GITHUB_REF_NAME" ]; then
# We force recreate the branch in order to always be up to date and avoid merge conflicts within the automated workflow
git branch -f website
git push -f origin website
fi
env:
GH_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
118 changes: 60 additions & 58 deletions .nx/workflows/agents.yaml
Original file line number Diff line number Diff line change
@@ -1,59 +1,61 @@
parallelism: 8
env:
CI: 'true'
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: Test
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: Test
NX_E2E_CI_CACHE_KEY: e2e-circleci-linux
NX_VERBOSE_LOGGING: 'false'
NX_DAEMON: 'true'
NX_PERF_LOGGING: 'false'
NX_NATIVE_LOGGING: 'false'
SELECTED_PM: 'pnpm'
NX_E2E_RUN_E2E: 'true'
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
on:
- events:
- CREATE_RUN_GROUP
steps:
- name: Checkout
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml'

- name: Cache restore
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/cache/main.yaml'
launch-templates:
linux-medium:
resource-class: 'docker_linux_amd64/medium+'
env:
KEY: 'pnpm-lock.yaml'
PATHS: |
node_modules
~/.cache/Cypress
~/.pnpm-store
BASE_BRANCH: 'master'

- name: Install Pnpm
script: |
npm install -g @pnpm/[email protected]
- name: Pnpm Install
script: |
pnpm install --frozen-lockfile
- name: Install Cypress
script: pnpm exec cypress install

- name: Install Rust
script: |
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup toolchain install 1.70.0
- name: Configure git metadata (needed for lerna smoke tests)
script: |
git config --global user.email [email protected]
git config --global user.name "Test Test"
- name: Run Agent
script: |
source "$HOME/.cargo/env"
npx nx-cloud start-agent
CI: 'true'
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: Test
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: Test
NX_E2E_CI_CACHE_KEY: e2e-circleci-linux
NX_VERBOSE_LOGGING: 'true'
NX_PERF_LOGGING: 'false'
NX_NATIVE_LOGGING: 'false'
SELECTED_PM: 'pnpm'
NX_E2E_RUN_E2E: 'true'
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
NX_CLOUD_ACCESS_TOKEN: '{{secrets.NX_CLOUD_ACCESS_TOKEN}}'
init-steps:
- name: LSCPU
script: |
lscpu
- name: Checkout
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/checkout/main.yaml'

- name: Cache restore
uses: 'nrwl/nx-cloud-workflows/v1.1/workflow-steps/cache/main.yaml'
env:
KEY: 'pnpm-lock.yaml'
PATHS: |
node_modules
~/.cache/Cypress
~/.pnpm-store
BASE_BRANCH: 'master'

- name: Install Pnpm
script: |
npm install -g @pnpm/[email protected]
- name: Pnpm Install
script: |
pnpm install --frozen-lockfile
- name: Install Cypress
script: pnpm exec cypress install

- name: Install Rust
script: |
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup toolchain install 1.70.0
- name: Configure git metadata (needed for lerna smoke tests)
script: |
git config --global user.email [email protected]
git config --global user.name "Test Test"
- name: Load Cargo Env
script: echo "PATH=$HOME/.cargo/bin:$PATH" >> $NX_CLOUD_ENV

- name: Benchmark
script: node tools/benchmark/benchmark.js
Loading

0 comments on commit 4357a77

Please sign in to comment.