From 0da8fb1eba06581c763db3805f32cf268c913508 Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Thu, 23 Nov 2023 13:13:28 -0800 Subject: [PATCH] Split tests into individual jobs. --- .github/workflows/run-tests.yml | 24 +++++++++++++++++++++--- matrix.yml | 15 +++++++++++++++ 2 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 matrix.yml diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 3099430..aa497ca 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -6,15 +6,33 @@ on: pull_request: jobs: + setup-matrix: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + + - name: Prepare SIPssert + uses: OpenSIPS/SIPssert/actions/Prepare_SIPssert@main + + - name: Read and parse YAML file + id: set-matrix + uses: ./sipssert/actions/Set_Matrix test: + needs: setup-matrix - runs-on: ubuntu-latest + strategy: + matrix: ${{fromJson(needs.setup-matrix.outputs.matrix)}} + + runs-on: ${{ matrix.os }} steps: - name: Prepare SIPssert uses: OpenSIPS/SIPssert/actions/Prepare_SIPssert@main - - name: Run All Tests - uses: OpenSIPS/SIPssert/actions/Run_All_Tests@main + - name: Run Test + uses: ./sipssert/actions/Run_Test + with: + scenario: ${{ matrix.scenario }} diff --git a/matrix.yml b/matrix.yml new file mode 100644 index 0000000..f98e2b7 --- /dev/null +++ b/matrix.yml @@ -0,0 +1,15 @@ +os: + - ubuntu-latest +scenario: + - accounting + - auth + - b2b + - dialog + - permissions + - presence + - record-route + - registration + - startup + - stir-shaken + - topology-hiding + - uac-auth