integration_tests.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. name: integration_tests
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. workflow_dispatch:
  8. jobs:
  9. swift-button-functional-test:
  10. runs-on: macOS-12
  11. # Don't run if triggered by a PR from a fork since our Secrets won't be provided to the runner.
  12. if: "!github.event.pull_request.head.repo.fork"
  13. defaults:
  14. run:
  15. working-directory: Samples/Swift/DaysUntilBirthday
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@v3
  19. - name: Build test target for Google Sign-in button for Swift
  20. run: |
  21. xcodebuild \
  22. -project DaysUntilBirthday.xcodeproj \
  23. build-for-testing \
  24. -scheme DaysUntilBirthday\ \(iOS\) \
  25. -sdk iphonesimulator \
  26. -destination 'platform=iOS Simulator,name=iPhone 11'
  27. - name: Run test target for Google Sign-in button for Swift
  28. env:
  29. EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }}
  30. PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }}
  31. run: |
  32. xcodebuild \
  33. -project DaysUntilBirthday.xcodeproj \
  34. test-without-building \
  35. -scheme DaysUntilBirthday\ \(iOS\) \
  36. -sdk iphonesimulator \
  37. -destination 'platform=iOS Simulator,name=iPhone 11' \
  38. EMAIL_SECRET=$EMAIL_SECRET \
  39. PASSWORD_SECRET=$PASSWORD_SECRET
  40. app-check-api-token-tests:
  41. runs-on: macOS-12
  42. # Don't run if triggered by a PR from a fork since our Secrets won't be provided to the runner.
  43. if: "!github.event.pull_request.head.repo.fork"
  44. defaults:
  45. run:
  46. working-directory: Samples/Swift/AppAttestExample
  47. steps:
  48. - name: Checkout
  49. uses: actions/checkout@v3
  50. - name: Build test target for App Check Example
  51. run: |
  52. xcodebuild \
  53. -project AppAttestExample.xcodeproj \
  54. build-for-testing \
  55. -scheme AppAttestExample \
  56. -sdk iphonesimulator \
  57. -destination 'platform=iOS Simulator,name=iPhone 11'
  58. - name: Run test target for App Check Example
  59. env:
  60. AppCheckDebugToken : ${{ secrets.APP_CHECK_DEBUG_TOKEN }}
  61. APP_CHECK_WEB_API_KEY : ${{ secrets.APP_CHECK_WEB_API_KEY }}
  62. run: |
  63. xcodebuild \
  64. -project AppAttestExample.xcodeproj \
  65. test-without-building \
  66. -scheme AppAttestExample \
  67. -sdk iphonesimulator \
  68. -destination 'platform=iOS Simulator,name=iPhone 11' \
  69. AppCheckDebugToken=$AppCheckDebugToken \
  70. APP_CHECK_WEB_API_KEY=$APP_CHECK_WEB_API_KEY