mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[AAE-1274] CI opt - Build only core/content/process storybook (#8139)
* Build only core/content/process storybook * Use a target and run only if affected * Do not run any storybook e2e
This commit is contained in:
parent
34e5508076
commit
f654fdf008
12
.github/workflows/pull-request.yml
vendored
12
.github/workflows/pull-request.yml
vendored
@ -70,7 +70,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
|
|
||||||
# long timeout required when cache has to be recreated
|
# long timeout required when cache has to be recreated
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
name: "Setup"
|
name: "Setup"
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@ -105,14 +105,14 @@ jobs:
|
|||||||
- name: insights
|
- name: insights
|
||||||
exclude: "core,extensions,content-services,process-services-cloud"
|
exclude: "core,extensions,content-services,process-services-cloud"
|
||||||
- name: process-cloud
|
- name: process-cloud
|
||||||
exclude: "insights,core,extensions,content-services,process-services"
|
exclude: "insights,core,extensions,content-services,process-services"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # Fetch all history for all tags and branches
|
fetch-depth: 0 # Fetch all history for all tags and branches
|
||||||
- uses: ./.github/actions/setup
|
- uses: ./.github/actions/setup
|
||||||
- uses: ./.github/actions/download-cache-and-artifacts
|
- uses: ./.github/actions/download-cache-and-artifacts
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
/usr/bin/xvfb-run --auto-servernum nx affected:test $NX_CALCULATION_FLAGS --exclude=${{ matrix.unit-tests.exclude }}
|
/usr/bin/xvfb-run --auto-servernum nx affected:test $NX_CALCULATION_FLAGS --exclude=${{ matrix.unit-tests.exclude }}
|
||||||
@ -147,7 +147,7 @@ jobs:
|
|||||||
- uses: ./.github/actions/download-cache-and-artifacts
|
- uses: ./.github/actions/download-cache-and-artifacts
|
||||||
- run: nx affected:build $NX_CALCULATION_FLAGS --prod
|
- run: nx affected:build $NX_CALCULATION_FLAGS --prod
|
||||||
- run: nx build demoshell --configuration production
|
- run: nx build demoshell --configuration production
|
||||||
- run: nx run stories:build-storybook --configuration ci
|
- run: nx affected --target=build-storybook $NX_CALCULATION_FLAGS --configuration ci
|
||||||
- uses: ./.github/actions/upload-cache-and-artifacts
|
- uses: ./.github/actions/upload-cache-and-artifacts
|
||||||
|
|
||||||
e2e-storybook:
|
e2e-storybook:
|
||||||
@ -166,7 +166,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
npx playwright install chromium
|
npx playwright install chromium
|
||||||
sudo sysctl -w fs.inotify.max_user_watches=524288
|
sudo sysctl -w fs.inotify.max_user_watches=524288
|
||||||
npx playwright test --config='e2e-playwright/playwright.config.ts' || exit 1
|
npx nx affected --target=e2e-playwright $NX_CALCULATION_FLAGS || exit 1
|
||||||
- uses: ./.github/actions/upload-cache-and-artifacts
|
- uses: ./.github/actions/upload-cache-and-artifacts
|
||||||
|
|
||||||
e2e:
|
e2e:
|
||||||
@ -315,4 +315,4 @@ jobs:
|
|||||||
check-ps-cloud-env: ${{ matrix.e2e-test.check-ps-cloud-env }}
|
check-ps-cloud-env: ${{ matrix.e2e-test.check-ps-cloud-env }}
|
||||||
check-external-cs-env: ${{ matrix.e2e-test.check-external-cs-env }}
|
check-external-cs-env: ${{ matrix.e2e-test.check-external-cs-env }}
|
||||||
apa-proxy: ${{ matrix.e2e-test.apa-proxy }}
|
apa-proxy: ${{ matrix.e2e-test.apa-proxy }}
|
||||||
#
|
#
|
||||||
|
11
angular.json
11
angular.json
@ -678,6 +678,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"e2e-playwright": {
|
||||||
|
"executor": "nx:run-commands",
|
||||||
|
"options": {
|
||||||
|
"commands": [
|
||||||
|
{
|
||||||
|
"command": "$(npm bin)/playwright test --config='e2e-playwright/playwright.config.ts'"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"spellcheck": {
|
"spellcheck": {
|
||||||
"executor": "nx:run-commands",
|
"executor": "nx:run-commands",
|
||||||
"options": {
|
"options": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user