[AAE-32905] - Start by adding unit test matrix

This commit is contained in:
VitoAlbano
2025-03-13 16:54:05 +00:00
parent 53cb8e9b20
commit 14d498a705
2 changed files with 4 additions and 6 deletions

View File

@@ -215,7 +215,7 @@ jobs:
needs: [generate-affected-matrix]
steps:
- name: Call unit tests workflow
uses: ./.github/workflows/_unit-tests.yml
uses: ./.github/workflows/unit-test.yml@main
with:
matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}

View File

@@ -1,5 +1,3 @@
name: "Unit Tests for Affected Projects"
on:
workflow_call:
inputs:
@@ -20,10 +18,10 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- uses: ./.github/actions/download-node-modules-and-artifacts
- name: Setup environment
uses: ./.github/actions/setup
- name: Run test for ${{ matrix.project }}
env:
NODE_OPTIONS: "--max-old-space-size=5120"
run: |
xvfb-run --auto-servernum npx nx run ${{ matrix.project }}:test
xvfb-run --auto-servernum npx nx run ${{ matrix.project }}:test --parallel