bring bundle back to fix e2e [ci:force]

This commit is contained in:
Wojciech Duda
2024-07-04 17:26:09 +02:00
committed by VitoAlbano
parent 9a6ab678f9
commit f2e916c940
5 changed files with 42 additions and 13 deletions

View File

@@ -99,7 +99,7 @@ runs:
run: | run: |
echo "running: check EXTERNAL-CS is UP" echo "running: check EXTERNAL-CS is UP"
set -u; set -u;
./dist/libs/cli/bin/adf-cli \ ./node_modules/@alfresco/adf-cli/bin/adf-cli \
check-cs-env \ check-cs-env \
--host "$EXTERNAL_ACS_HOST" \ --host "$EXTERNAL_ACS_HOST" \
-u "$E2E_USERNAME" \ -u "$E2E_USERNAME" \
@@ -111,7 +111,7 @@ runs:
run: | run: |
echo "Running: Check CS is UP" echo "Running: Check CS is UP"
set -u; set -u;
./dist/libs/cli/bin/adf-cli \ ./node_modules/@alfresco/adf-cli/bin/adf-cli \
check-cs-env \ check-cs-env \
--host "$E2E_HOST" \ --host "$E2E_HOST" \
-u "$E2E_USERNAME" \ -u "$E2E_USERNAME" \
@@ -123,7 +123,7 @@ runs:
run: | run: |
echo "Running: check PS is UP" echo "Running: check PS is UP"
set -u; set -u;
./dist/libs/cli/bin/adf-cli init-aps-env \ ./node_modules/@alfresco/adf-cli/bin/adf-cli init-aps-env \
--host "$E2E_HOST" \ --host "$E2E_HOST" \
-u "$E2E_USERNAME" \ -u "$E2E_USERNAME" \
-p "$E2E_PASSWORD" \ -p "$E2E_PASSWORD" \
@@ -135,7 +135,7 @@ runs:
run: | run: |
echo "running: check PS-CLOUD is UP" echo "running: check PS-CLOUD is UP"
set -u; set -u;
./dist/libs/cli/bin/adf-cli init-aae-env \ ./node_modules/@alfresco/adf-cli/bin/adf-cli init-aae-env \
--oauth "$E2E_IDENTITY_HOST_APA" \ --oauth "$E2E_IDENTITY_HOST_APA" \
--host "$E2E_HOST_APA" \ --host "$E2E_HOST_APA" \
--modelerUsername "$E2E_MODELER_USERNAME" \ --modelerUsername "$E2E_MODELER_USERNAME" \

View File

@@ -205,9 +205,9 @@ jobs:
- name: install - name: install
run: | run: |
npm ci npm ci
npx nx run js-api:build npx nx run js-api:bundle
npx nx run cli:build npx nx run cli:bundle
npx nx run testing:build npx nx run testing:bundle
- run: npx nx print-affected $NX_CALCULATION_FLAGS - run: npx nx print-affected $NX_CALCULATION_FLAGS
- uses: ./.github/actions/upload-node-modules-and-artifacts - uses: ./.github/actions/upload-node-modules-and-artifacts

View File

@@ -97,9 +97,9 @@ jobs:
- name: install - name: install
run: | run: |
npm ci npm ci
npx nx run js-api:build npx nx run js-api:bundle
npx nx run cli:build npx nx run cli:bundle
npx nx run testing:build npx nx run testing:bundle
- uses: ./.github/actions/upload-node-modules-and-artifacts - uses: ./.github/actions/upload-node-modules-and-artifacts
release-npm: release-npm:

View File

@@ -102,9 +102,9 @@ jobs:
- name: install - name: install
run: | run: |
npm ci npm ci
npx nx run js-api:build npx nx run js-api:bundle
npx nx run cli:build npx nx run cli:bundle
npx nx run testing:build npx nx run testing:bundle
- uses: ./.github/actions/upload-node-modules-and-artifacts - uses: ./.github/actions/upload-node-modules-and-artifacts
release-demoshell: release-demoshell:

View File

@@ -41,6 +41,35 @@
"lintFilePatterns": ["lib/js-api/**/*.ts"] "lintFilePatterns": ["lib/js-api/**/*.ts"]
} }
}, },
"bundle": {
"executor": "nx:run-commands",
"options": {
"commands": [
{
"command": "echo cli bundle created"
}
]
},
"dependsOn": [
"copyToNodeModules"
]
},
"copyToNodeModules": {
"executor": "nx:run-commands",
"options": {
"commands": [
{
"command": "rm -rf ./node_modules/@alfresco/js-api/ && mkdir -p ./node_modules/@alfresco/js-api/ && cp -R ./dist/libs/js-api/* ./node_modules/@alfresco/js-api/"
}
]
},
"dependsOn": [
{
"projects": "self",
"target": "build"
}
]
},
"test": { "test": {
"executor": "nx:run-commands", "executor": "nx:run-commands",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],