chore: trigger integration tests on successful build on main branch
This commit is contained in:
10
.github/workflows/tests.yml
vendored
10
.github/workflows/tests.yml
vendored
@@ -20,4 +20,14 @@ jobs:
|
|||||||
run: yarn test:integration:wasm
|
run: yarn test:integration:wasm
|
||||||
- name: Run regression tests
|
- name: Run regression tests
|
||||||
run: yarn test:regression
|
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}}"}}'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user