[AAE-32905] - Maybe i was too optimistic

This commit is contained in:
VitoAlbano
2025-04-15 10:31:59 +01:00
parent 0b30b2595f
commit dc572093d2
4 changed files with 44 additions and 10 deletions
+28
View File
@@ -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
+9 -9
View File
@@ -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
+7
View File
@@ -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]
-1
View File
@@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
include: ${{ fromJson(inputs.matrix) }}
max-parallel: 4
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683