mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
add build-libs step
This commit is contained in:
@@ -65,7 +65,7 @@ env:
|
|||||||
DOCKER_REPOSITORY: "${{ secrets.DOCKER_REPOSITORY_DOMAIN }}/alfresco/demo-shell"
|
DOCKER_REPOSITORY: "${{ secrets.DOCKER_REPOSITORY_DOMAIN }}/alfresco/demo-shell"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
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: "Build Components"
|
name: "Build Components"
|
||||||
@@ -82,10 +82,6 @@ jobs:
|
|||||||
nx run cli:bundle
|
nx run cli:bundle
|
||||||
nx run testing:bundle
|
nx run testing:bundle
|
||||||
- run: nx affected --target=lint $NX_CALCULATION_FLAGS
|
- run: nx affected --target=lint $NX_CALCULATION_FLAGS
|
||||||
- run: /usr/bin/xvfb-run --auto-servernum nx affected:test $NX_CALCULATION_FLAGS --exclude="insights,core,extensions,process-services,process-services-cloud" }}
|
|
||||||
- run: nx affected:build $NX_CALCULATION_FLAGS --prod
|
|
||||||
- run: nx build demoshell --configuration production
|
|
||||||
- run: nx run stories:build-storybook --configuration ci
|
|
||||||
- uses: ./.github/actions/upload-cache-and-artifacts
|
- uses: ./.github/actions/upload-cache-and-artifacts
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
@@ -116,10 +112,28 @@ jobs:
|
|||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: nx affected:test $NX_CALCULATION_FLAGS --exclude="${{ matrix.unit-tests.exclude }}"
|
run: nx affected:test $NX_CALCULATION_FLAGS --exclude="${{ matrix.unit-tests.exclude }}"
|
||||||
|
|
||||||
e2e storybook:
|
build-libs:
|
||||||
|
# long timeout required when cache has to be recreated
|
||||||
|
timeout-minutes: 30
|
||||||
|
name: "Build Components"
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
needs: [unit-tests]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Fetch all history for all tags and branches
|
||||||
|
- uses: ./.github/actions/setup
|
||||||
|
- uses: ./.github/actions/download-cache-and-artifacts
|
||||||
|
- run: nx affected:build $NX_CALCULATION_FLAGS --prod
|
||||||
|
- run: nx build demoshell --configuration production
|
||||||
|
- run: nx run stories:build-storybook --configuration ci
|
||||||
|
- uses: ./.github/actions/upload-cache-and-artifacts
|
||||||
|
|
||||||
|
e2e-storybook:
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
name: "playwright"
|
name: "playwright"
|
||||||
needs: [unit-tests]
|
needs: [build-libs]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -138,7 +152,7 @@ jobs:
|
|||||||
e2e:
|
e2e:
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
name: "e2e: ${{ matrix.e2e-test.description }}"
|
name: "e2e: ${{ matrix.e2e-test.description }}"
|
||||||
needs: [unit-tests]
|
needs: [build-libs]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|||||||
Reference in New Issue
Block a user