Skip to content

Commit

Permalink
Linux CI Repository Dispatch Test added (#509)
Browse files Browse the repository at this point in the history
* Update windows-test.yml

In this I have added the repository dispatch so that it will trigger the windows-dist repo, only if it passes all the windows tests mentioned

* Update linux-test.yml

* org name change

* adding payoad to find tags

* Update macos-test.yml

* Update linux-test.yml

* Update linux-test.yml

* Update macos-test.yml

* Update windows-test.yml

---------

Co-authored-by: Vicente Eduardo Ferrer Garcia <7854099+viferga@users.noreply.github.com>
  • Loading branch information
shaggyyy2002 and viferga authored Jul 23, 2024
1 parent a4526c3 commit ffe0b97
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,16 @@ jobs:
env:
METACALL_BUILD_TYPE: ${{ matrix.build }}
METACALL_BASE_IMAGE: ${{ matrix.image }}

trigger_dist_linux:
needs: linux-test
if: ${{ success() }}
runs-on: ubuntu-latest
steps:
- name: Linux Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
repository: metacall/distributable-linux
event-type: test-trigger
client-payload: '{"ref": "${{ github.ref }}"}'
13 changes: 13 additions & 0 deletions .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,16 @@ jobs:
bash ../tools/metacall-build.sh $METACALL_BUILD_OPTIONS
env:
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests

trigger_dist_macos:
needs: mac-test
if: ${{ success() }}
runs-on: ubuntu-latest
steps:
- name: MacOS Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
repository: metacall/distributable-macos
event-type: test-trigger
client-payload: '{"ref": "${{ github.ref }}"}'
13 changes: 13 additions & 0 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,16 @@ jobs:
run: cmd.exe /c "powershell ..\tools\metacall-build.ps1 $Env:METACALL_BUILD_OPTIONS"
env:
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests

trigger_dist_windows:
needs: windows-test
if: ${{ success() }}
runs-on: ubuntu-latest
steps:
- name: Windows Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
repository: metacall/distributable-windows
event-type: test-trigger
client-payload: '{"ref": "${{ github.ref }}"}'

0 comments on commit ffe0b97

Please sign in to comment.