Skip to content

Commit

Permalink
Merge pull request #8 from sobomax/pr_split_jobs
Browse files Browse the repository at this point in the history
Split tests into individual jobs.
  • Loading branch information
razvancrainea authored Nov 24, 2023
2 parents 0b47ac5 + 0da8fb1 commit e8ade1d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
15 changes: 15 additions & 0 deletions matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
os:
- ubuntu-latest
scenario:
- accounting
- auth
- b2b
- dialog
- permissions
- presence
- record-route
- registration
- startup
- stir-shaken
- topology-hiding
- uac-auth

0 comments on commit e8ade1d

Please sign in to comment.