End-to-end tests #34
This file contains 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: End-to-end tests | |
on: | |
schedule: | |
# every day at 8am | |
- cron: '0 8 * * *' | |
jobs: | |
end-to-end-tests: | |
name: End-to-end tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/stripe_setup | |
- name: End-to-end tests | |
env: | |
STRIPE_END_TO_END_TESTS_BACKEND_URL: ${{ secrets.STRIPE_END_TO_END_TESTS_BACKEND_URL }} | |
STRIPE_END_TO_END_TESTS_PUBLISHABLE_KEY: ${{ secrets.STRIPE_END_TO_END_TESTS_PUBLISHABLE_KEY }} | |
run: ./gradlew :stripe-test-e2e:testDebugUnitTest | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: unit-test-report | |
path: stripe-test-e2e/build/reports/tests/testDebugUnitTest/ | |
- name: Notify failure endpoint | |
id: notifyFailureEndpoint | |
if: failure() | |
run: | | |
./scripts/notify_failure_endpoint.rb \ | |
${{ secrets.SDK_FAILURE_NOTIFICATION_ENDPOINT }} \ | |
${{ secrets.SDK_FAILURE_NOTIFICATION_ENDPOINT_HMAC_KEY }} \ | |
"https://github.com/stripe/stripe-android/actions/runs/${{ github.run_id }}" \ | |
RUN_MOBILESDK |