mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[AAE-32905] - Maybe i was too optimistic
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
name: "Build Lib Workflow"
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
matrix:
|
||||
description: 'JSON Matrix of projects'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ fromJson(inputs.matrix) }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup environment
|
||||
uses: ./.github/actions/setup
|
||||
- name: Run build for ${{ matrix.project }}
|
||||
env:
|
||||
NODE_OPTIONS: "--max-old-space-size=5120"
|
||||
run: |
|
||||
xvfb-run --auto-servernum npx nx run ${{ matrix.project }}:build:production
|
||||
@@ -197,15 +197,15 @@ jobs:
|
||||
echo "Matrix JSON: $MATRIX_JSON"
|
||||
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
|
||||
|
||||
trigger-unit-tests:
|
||||
name: "Unit Tests"
|
||||
runs-on: ubuntu-latest
|
||||
needs: [generate-affected-matrix]
|
||||
steps:
|
||||
- name: Call unit tests workflow
|
||||
uses: ./.github/workflows/unit-test-workflow.yml@main
|
||||
with:
|
||||
matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
|
||||
# trigger-unit-tests:
|
||||
# name: "Unit Tests"
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: [generate-affected-matrix]
|
||||
# steps:
|
||||
# - name: Call unit tests workflow
|
||||
# uses: ./.github/workflows/unit-test-workflow.yml@main
|
||||
# with:
|
||||
# matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
|
||||
|
||||
lint:
|
||||
# long timeout required when cache has to be recreated
|
||||
|
||||
@@ -209,6 +209,13 @@ jobs:
|
||||
echo "Matrix JSON: $MATRIX_JSON"
|
||||
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
|
||||
|
||||
trigger-build:
|
||||
name: "Build Libs"
|
||||
needs: [generate-affected-matrix]
|
||||
uses: ./.github/workflows/unit-test-workflow.yml
|
||||
with:
|
||||
matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
|
||||
|
||||
trigger-unit-tests:
|
||||
name: "Unit Tests"
|
||||
needs: [generate-affected-matrix]
|
||||
|
||||
@@ -14,7 +14,6 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ fromJson(inputs.matrix) }}
|
||||
max-parallel: 4
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||
|
||||
Reference in New Issue
Block a user