Compare commits

...

8 Commits

Author SHA1 Message Date
“JamesHenry” 1610398974 chore(js): no 2024-04-29 19:11:00 +01:00
“JamesHenry” 4e095167a1 chore(js): no extra 2024-04-29 18:38:15 +01:00
“JamesHenry” ff7633b7fb chore(js): run 2024-04-29 18:15:19 +01:00
“JamesHenry” 9131b17bb6 chore(js): run 2024-04-29 18:05:34 +01:00
“JamesHenry” 35cdff314c chore(js): run 2024-04-29 17:55:13 +01:00
“JamesHenry” 9ffdf169cd chore(repo): run 2024-04-29 17:52:51 +01:00
“JamesHenry” ae5a123ef3 chore(repo): echo test 2024-04-29 17:32:00 +01:00
“JamesHenry” 1ceb50bba2 chore(repo): echo test 2024-04-29 17:31:10 +01:00
+68 -66
View File
@@ -135,79 +135,81 @@ jobs:
- nx/set-shas:
main-branch-name: 'master'
- run: npx nx-cloud@next start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" --stop-agents-after="e2e"
- run:
command: |
sudo apt-get update
sudo apt-get install -y ca-certificates lsof
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- install-sdkman
- install-gradle:
gradle-version: '8.5'
# - run:
# command: |
# sudo apt-get update
# sudo apt-get install -y ca-certificates lsof
# - browser-tools/install-chrome
# - browser-tools/install-chromedriver
# - install-sdkman
# - install-gradle:
# gradle-version: '8.5'
- run-pnpm-install:
os: linux
- run:
name: Check Documentation
command: pnpm nx documentation --no-dte
no_output_timeout: 20m
- run:
name: Run Checks/Lint/Test/Build
no_output_timeout: 60m
command: |
pids=()
- run: echo hi
- run: npx nx test eslint
# - run:
# name: Check Documentation
# command: pnpm nx documentation --no-dte
# no_output_timeout: 20m
# - run:
# name: Run Checks/Lint/Test/Build
# no_output_timeout: 60m
# command: |
# pids=()
pnpm nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD &
pids+=($!)
# pnpm nx-cloud record -- nx format:check --base=$NX_BASE --head=$NX_HEAD &
# pids+=($!)
pnpm nx run-many -t check-imports check-commit check-lock-files check-codeowners documentation --parallel=1 --no-dte &
pids+=($!)
# pnpm nx run-many -t check-imports check-commit check-lock-files check-codeowners documentation --parallel=1 --no-dte &
# pids+=($!)
(pnpm nx affected --targets=lint,test,build --base=$NX_BASE --head=$NX_HEAD --parallel=3 &&
pnpm nx affected --targets=e2e,e2e-ci --base=$NX_BASE --head=$NX_HEAD --parallel=1) &
pids+=($!)
# (pnpm nx affected --targets=lint,test,build --base=$NX_BASE --head=$NX_HEAD --parallel=3 &&
# pnpm nx affected --targets=e2e,e2e-ci --base=$NX_BASE --head=$NX_HEAD --parallel=1) &
# pids+=($!)
for pid in "${pids[@]}"; do
wait "$pid"
done
# for pid in "${pids[@]}"; do
# wait "$pid"
# done
# -------------------------
# JOBS: Main-MacOS
# -------------------------
mainmacos:
executor: macos
environment:
NX_E2E_CI_CACHE_KEY: e2e-circleci-macos
NX_PERF_LOGGING: 'false'
NX_CI_EXECUTION_ENV: 'macos'
SELECTED_PM: 'npm' # explicitly define npm for macOS tests
steps:
- checkout
- restore_cache:
name: Restore Homebrew packages
keys:
- nrwl-nx-homebrew-packages
- run:
name: Configure Detox Environment, Install applesimutils
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
xcrun simctl shutdown all && xcrun simctl erase all
no_output_timeout: 20m
- save_cache:
name: Save Homebrew Cache
key: nrwl-nx-homebrew-packages
paths:
- /usr/local/Homebrew
- ~/Library/Caches/Homebrew
- run-pnpm-install:
os: macos
- rust/install
- nx/set-shas:
main-branch-name: 'master'
- run:
name: Run E2E Tests for macOS
command: |
pnpm nx affected -t e2e-macos-ci --parallel=1 --base=$NX_BASE --head=$NX_HEAD
no_output_timeout: 45m
# mainmacos:
# executor: macos
# environment:
# NX_E2E_CI_CACHE_KEY: e2e-circleci-macos
# NX_PERF_LOGGING: 'false'
# NX_CI_EXECUTION_ENV: 'macos'
# SELECTED_PM: 'npm' # explicitly define npm for macOS tests
# steps:
# - checkout
# - restore_cache:
# name: Restore Homebrew packages
# keys:
# - nrwl-nx-homebrew-packages
# - run:
# name: Configure Detox Environment, Install applesimutils
# command: |
# HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
# HOMEBREW_NO_AUTO_UPDATE=1 brew install applesimutils >/dev/null
# xcrun simctl shutdown all && xcrun simctl erase all
# no_output_timeout: 20m
# - save_cache:
# name: Save Homebrew Cache
# key: nrwl-nx-homebrew-packages
# paths:
# - /usr/local/Homebrew
# - ~/Library/Caches/Homebrew
# - run-pnpm-install:
# os: macos
# - rust/install
# - nx/set-shas:
# main-branch-name: 'master'
# - run:
# name: Run E2E Tests for macOS
# command: |
# pnpm nx affected -t e2e-macos-ci --parallel=1 --base=$NX_BASE --head=$NX_HEAD
# no_output_timeout: 45m
# -------------------------
# WORKFLOWS(JOBS)
@@ -218,5 +220,5 @@ workflows:
build:
jobs:
- main-linux
- mainmacos:
name: main-macos-e2e
# - mainmacos:
# name: main-macos-e2e