chore: trigger integration tests on successful build on main branch

This commit is contained in:
robal
2023-02-11 14:46:09 +01:00
parent d779edc4bc
commit 3493ed649c

View File

@@ -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}}"}}'