diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 63f1e2e..79e2daa 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,4 +20,14 @@ jobs: run: yarn test:integration:wasm - name: Run regression tests run: yarn test:regression + - name: Trigger integration tests + if: github.ref_name == 'main' + run: > + curl + -X POST + -H "Accept: application/vnd.github+json" + -H "Authorization: Bearer ${{secrets.PAT_TRIGGER_INTEGRATION_TESTS}}" + -H "X-GitHub-Api-Version: 2022-11-28" + https://api.github.com/repos/warp-contracts/warp-integration-tests/dispatches + -d '{"event_type":"sdk_push","client_payload":{"ref":"${{github.ref}}","sha":"${{github.sha}}"}}'