File tree Expand file tree Collapse file tree 4 files changed +44
-10
lines changed
Expand file tree Collapse file tree 4 files changed +44
-10
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]
Original file line number Diff line number Diff line change 1414 strategy :
1515 matrix :
1616 include : ${{ fromJson(inputs.matrix) }}
17- max-parallel : 4
1817 steps :
1918 - name : Checkout repository
2019 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
You can’t perform that action at this time.
0 commit comments