-
Notifications
You must be signed in to change notification settings - Fork 2
24 lines (22 loc) · 1.31 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This file will run integration tests when code is merged into the
# main branch.
# The workflow is currently in use by Lyrasis and this trigger was
# requested by Helen Suboch
name: Integration
on:
push:
branches: [main]
jobs:
integration:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trigger test with webhook
uses: joelwmale/webhook-action@aed4f319dce44a4f73cdf0480b94df9e6dfc6cae
# based on the following curl command from A1QA
# curl -X POST -H "Accept:application/vnd.github.v3+json" https://api.github.com/repos/NYPL-Simplified/integration-tests-web/actions/workflows/3469469/dispatches -d '{"ref":"main", "inputs":{"test_tag":"(@tier1 or @tier2 or @tier3)","build_name":"BUILD_NAME","browser_name":"chrome","browser_type":"desktop"}}' -H "Authorization: token ${{secrets.PERSONAL_TOKEN}}"
with:
url: https://api.github.com/repos/ThePalaceProject/web-integration-tests/actions/workflows/maven.yml/dispatches
headers: '{"Accept": "application/vnd.github.v3+json", "Authorization": "token ${{secrets.SIMPLIFIED_CI_TOKEN}}"}'
body: '{"ref":"main", "inputs":{"test_tag":"(@tier1 or @tier2 or @tier3)","build_name":"${{github.ref}}.${{github.sha}}","browser_name":"chrome","browser_type":"desktop"}}'