🚀 5.6.15 #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Trigger | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| tests-on-push: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Dispatch App Build | |
| run: | | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "iOS-ReactNativeClassic", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "Android-ReactNativeClassic", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "iOS-ReactNativeExpo", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "Android-ReactNativeExpo", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' | |
| tests-on-pr: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Dispatch App Build | |
| run: | | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d "$(jq -n \ | |
| --arg et 'iOS-ReactNativeClassic' \ | |
| --arg prnum '${{ github.event.pull_request.number }}' \ | |
| --arg sh '${{ github.event.pull_request.head.sha }}' \ | |
| '{event_type:$et, client_payload:{pr:$prnum, sha:$sh}}')" | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d "$(jq -n \ | |
| --arg et 'Android-ReactNativeClassic' \ | |
| --arg prnum '${{ github.event.pull_request.number }}' \ | |
| --arg sh '${{ github.event.pull_request.head.sha }}' \ | |
| '{event_type:$et, client_payload:{pr:$prnum, sha:$sh}}')" | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d "$(jq -n \ | |
| --arg et 'iOS-ReactNativeExpo' \ | |
| --arg prnum '${{ github.event.pull_request.number }}' \ | |
| --arg sh '${{ github.event.pull_request.head.sha }}' \ | |
| '{event_type:$et, client_payload:{pr:$prnum, sha:$sh}}')" | |
| curl -sS --fail-with-body -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d "$(jq -n \ | |
| --arg et 'Android-ReactNativeExpo' \ | |
| --arg prnum '${{ github.event.pull_request.number }}' \ | |
| --arg sh '${{ github.event.pull_request.head.sha }}' \ | |
| '{event_type:$et, client_payload:{pr:$prnum, sha:$sh}}')" | |
| tests-manual: | |
| if: github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Dispatch App Build | |
| run: | | |
| curl -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "iOS-ReactNativeClassic", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' | |
| curl -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "Android-ReactNativeClassic", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' | |
| curl -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "iOS-ReactNativeExpo", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' | |
| curl -X POST \ | |
| -H "Authorization: token ${{ secrets.AUTOMATION_ACCESS_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/trycourier/mobile-automation-tests/dispatches \ | |
| -d '{"event_type": "Android-ReactNativeExpo", "client_payload": {"sha":"'"${{ github.sha }}"'","ref":"'"${{ github.ref }}"'"}}' |