-
Notifications
You must be signed in to change notification settings - Fork 658
66 lines (61 loc) · 1.97 KB
/
ci.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: CI
on:
push:
branches:
- master
pull_request:
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 }}
GRADLE_OPTS: -Dkotlin.incremental=false
jobs:
end-to-end-tests:
name: End-to-end tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/stripe_setup
- name: End-to-end tests
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/
build-paymentsheet-example-project:
name: Build paymentsheet example project
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/stripe_setup
- name: Build example projects
run: ./gradlew :paymentsheet-example:assembleAndroidTest
- uses: actions/upload-artifact@v4
if: failure()
with:
name: test-failures
path: |
**/build/reports/tests/
**/out/failures/
payment-sheet-apk-size-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/stripe_setup
- name: Upload release bundle to Emerge
run: ./gradlew :paymentsheet-example:emergeUploadReleaseAab
env:
EMERGE_API_TOKEN: ${{ secrets.EMERGE_API_KEY }}
EMERGE_TAG: pull_request
check-for-untranslated-strings:
name: Check for untranslated strings
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- name: Check for untranslated strings
run: cd scripts && ruby lokalise/check_untranslated_strings.rb
env:
LOKALISE_API_TOKEN: ${{ secrets.LOKALISE_API_TOKEN }}