Compare commits

...

2 Commits

Author SHA1 Message Date
lourw 6cc85f14ba chore(repo): bust cache 2024-11-08 11:32:20 -08:00
lourw 3c34b46d36 chore(repo): enable assignment rules in CI 2024-11-08 11:32:20 -08:00
6 changed files with 152 additions and 7 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ jobs:
- checkout
- nx/set-shas:
main-branch-name: 'master'
- run: npx nx-cloud@next start-ci-run --distribute-on="auto linux-medium" --stop-agents-after="e2e" --require-explicit-completion
- run: npx nx-cloud@next start-ci-run --distribute-on="./.nx/workflows/distribution-config.yaml" --stop-agents-after="e2e" --require-explicit-completion
- run:
command: |
sudo apt-get update
+1
View File
@@ -41,6 +41,7 @@ out
.env.local
.bashrc
.nx
!.nx/workflows/
*.node
+113 -1
View File
@@ -1,5 +1,5 @@
launch-templates:
linux-medium:
linux-large:
resource-class: 'docker_linux_amd64/medium+'
image: 'ubuntu22.04-node20.11-v10'
env:
@@ -56,3 +56,115 @@ launch-templates:
- name: Install zip and unzip
script: sudo apt-get -yqq install zip unzip
linux-medium-v10:
resource-class: 'docker_linux_amd64/medium+'
image: 'ubuntu22.04-node20.11-v10'
env:
GIT_AUTHOR_EMAIL: test@test.com
GIT_AUTHOR_NAME: Test
GIT_COMMITTER_EMAIL: test@test.com
GIT_COMMITTER_NAME: Test
SELECTED_PM: 'pnpm'
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
init-steps:
- name: Checkout
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/checkout/main.yaml'
- name: Cache restore
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
inputs:
key: 'pnpm-lock.yaml'
paths: |
node_modules
~/.cache/Cypress
~/.cache/ms-playwright
~/.pnpm-store
base_branch: 'master'
- name: Install e2e deps
script: |
sudo apt-get update
sudo apt-get install -y ca-certificates lsof libvips-dev libglib2.0-dev libgirepository1.0-dev
- name: Install Pnpm
script: |
npm install -g pnpm@9.8.0
- name: Pnpm Install
script: |
pnpm install --frozen-lockfile
- name: Install Browsers
script: |
pnpm exec cypress install
pnpm exec playwright 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 test@test.com
git config --global user.name "Test Test"
- name: Load Cargo Env
script: echo "PATH=$HOME/.cargo/bin:$PATH" >> $NX_CLOUD_ENV
- name: Install zip and unzip
script: sudo apt-get -yqq install zip unzip
linux-medium-v11:
resource-class: 'docker_linux_amd64/medium+'
image: 'ubuntu22.04-node20.11-v11'
env:
GIT_AUTHOR_EMAIL: test@test.com
GIT_AUTHOR_NAME: Test
GIT_COMMITTER_EMAIL: test@test.com
GIT_COMMITTER_NAME: Test
SELECTED_PM: 'pnpm'
NPM_CONFIG_PREFIX: '/home/workflows/.npm-global'
init-steps:
- name: Checkout
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/checkout/main.yaml'
- name: Cache restore
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
inputs:
key: 'pnpm-lock.yaml'
paths: |
node_modules
~/.cache/Cypress
~/.cache/ms-playwright
~/.pnpm-store
base_branch: 'master'
- name: Install e2e deps
script: |
sudo apt-get update
sudo apt-get install -y ca-certificates lsof libvips-dev libglib2.0-dev libgirepository1.0-dev
- name: Install Pnpm
script: |
npm install -g pnpm@9.8.0
- name: Pnpm Install
script: |
pnpm install --frozen-lockfile
- name: Install Browsers
script: |
pnpm exec cypress install
pnpm exec playwright 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 test@test.com
git config --global user.name "Test Test"
- name: Load Cargo Env
script: echo "PATH=$HOME/.cargo/bin:$PATH" >> $NX_CLOUD_ENV
- name: Install zip and unzip
script: sudo apt-get -yqq install zip unzip
+36
View File
@@ -0,0 +1,36 @@
distribute-on:
small-changeset: 2 linux-medium-v10, 2 linux-medium-v11, 4 linux-large
medium-changeset: 2 linux-medium-v10, 3 linux-medium-v11, 5 linux-large
large-changeset: 2 linux-medium-v10, 5 linux-medium-v11, 5 linux-large
assignment-rules:
- target: lint
runs-on:
- linux-medium-v10
- target: package
runs-on:
- linux-large
- target: build
runs-on:
- linux-medium-v11
- linux-large
- project: playwright
runs-on:
- linux-large
- project: expo
target: lint
runs-on:
- linux-medium-v11
- target: build
project: jest
runs-on:
- linux-medium-v11
- target: test
runs-on:
- linux-medium-v10
-4
View File
@@ -1,4 +0,0 @@
distribute-on:
small-changeset: 8 linux-medium
medium-changeset: 10 linux-medium
large-changeset: 12 linux-medium
+1 -1
View File
@@ -246,7 +246,7 @@
"nxCloudUrl": "https://staging.nx.app",
"parallel": 1,
"cacheDirectory": "/tmp/nx-cache",
"bust": 8,
"bust": 9,
"defaultBase": "master",
"generators": {
"@nx/react": {