-
Notifications
You must be signed in to change notification settings - Fork 659
32 lines (31 loc) · 1.12 KB
/
end_to_end_tests.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
25
26
27
28
29
30
31
32
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@v4
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