Skip to content

Commit 8ba8cf7

Browse files
committed
[AAE-32905] - Maybe i was too optimistic
1 parent 72ba84f commit 8ba8cf7

File tree

4 files changed

+44
-10
lines changed

4 files changed

+44
-10
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Build Lib Workflow"
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
matrix:
7+
description: 'JSON Matrix of projects'
8+
required: true
9+
type: string
10+
11+
jobs:
12+
unit-tests:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
include: ${{ fromJson(inputs.matrix) }}
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
20+
with:
21+
fetch-depth: 0
22+
- name: Setup environment
23+
uses: ./.github/actions/setup
24+
- name: Run build for ${{ matrix.project }}
25+
env:
26+
NODE_OPTIONS: "--max-old-space-size=5120"
27+
run: |
28+
xvfb-run --auto-servernum npx nx run ${{ matrix.project }}:build:production

.github/workflows/pull-request-save.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ jobs:
197197
echo "Matrix JSON: $MATRIX_JSON"
198198
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
199199
200-
trigger-unit-tests:
201-
name: "Unit Tests"
202-
runs-on: ubuntu-latest
203-
needs: [generate-affected-matrix]
204-
steps:
205-
- name: Call unit tests workflow
206-
uses: ./.github/workflows/unit-test-workflow.yml@main
207-
with:
208-
matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
200+
# trigger-unit-tests:
201+
# name: "Unit Tests"
202+
# runs-on: ubuntu-latest
203+
# needs: [generate-affected-matrix]
204+
# steps:
205+
# - name: Call unit tests workflow
206+
# uses: ./.github/workflows/unit-test-workflow.yml@main
207+
# with:
208+
# matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
209209

210210
lint:
211211
# long timeout required when cache has to be recreated

.github/workflows/pull-request.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ jobs:
100100
echo "Matrix JSON: $MATRIX_JSON"
101101
echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
102102
103+
trigger-build:
104+
name: "Build Libs"
105+
needs: [generate-affected-matrix]
106+
uses: ./.github/workflows/unit-test-workflow.yml
107+
with:
108+
matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
109+
103110
trigger-unit-tests:
104111
name: "Unit Tests"
105112
needs: [generate-affected-matrix]

.github/workflows/unit-test-workflow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
strategy:
1515
matrix:
1616
include: ${{ fromJson(inputs.matrix) }}
17-
max-parallel: 4
1817
steps:
1918
- name: Checkout repository
2019
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683

0 commit comments

Comments
 (0)