integration_tests.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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