mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[AAE-32905] - Start by adding unit test matrix
This commit is contained in:
2
.github/workflows/pull-request.yml
vendored
2
.github/workflows/pull-request.yml
vendored
@@ -215,7 +215,7 @@ jobs:
|
|||||||
needs: [generate-affected-matrix]
|
needs: [generate-affected-matrix]
|
||||||
steps:
|
steps:
|
||||||
- name: Call unit tests workflow
|
- name: Call unit tests workflow
|
||||||
uses: ./.github/workflows/unit-test-workflow.yml
|
uses: ./.github/workflows/running-unit-test.yml
|
||||||
with:
|
with:
|
||||||
matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
|
matrix: ${{ needs.generate-affected-matrix.outputs.matrix }}
|
||||||
|
|
||||||
|
29
.github/workflows/running-unit-test.yml
vendored
Normal file
29
.github/workflows/running-unit-test.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: "Running Unit Test 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) }}
|
||||||
|
max-parallel: 4
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Setup environment
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
- name: Run unit tests for ${{ matrix.project }}
|
||||||
|
env:
|
||||||
|
NODE_OPTIONS: "--max-old-space-size=5120"
|
||||||
|
run: |
|
||||||
|
xvfb-run --auto-servernum npx nx run ${{ matrix.project }}:test
|
Reference in New Issue
Block a user