Skip to content

Commit

Permalink
workflows: rework triggering of tests running
Browse files Browse the repository at this point in the history
Trigger the run-tests workflow after an image is pushed

(cherry picked from commit 4b675f8)
  • Loading branch information
razvancrainea committed Mar 21, 2024
1 parent 145a387 commit e0a4500
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish SIPSsert Image
name: Build SIPSsert Image

on:
workflow_dispatch:
Expand Down Expand Up @@ -33,9 +33,3 @@ jobs:
modules: ${{ steps.fetch_modules.outputs.MODULES }}
docker-username: ${{ secrets.DOCKER_USERNAME }}
docker-token: ${{ secrets.DOCKER_TOKEN }}

- name: Prepare SIPssert
uses: OpenSIPS/SIPssert/actions/Prepare_SIPssert@main

- name: Run All Tests
uses: OpenSIPS/SIPssert/actions/Run_All_Tests@main
5 changes: 5 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
# Triggers the workflow on all push or pull request events
push:
pull_request:
workflow_run:
workflows:
- Build SIPSsert Image
types:
- completed

jobs:
setup-matrix:
Expand Down

0 comments on commit e0a4500

Please sign in to comment.