diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml new file mode 100644 index 00000000..d5577b12 --- /dev/null +++ b/.github/workflows/integration_tests.yml @@ -0,0 +1,42 @@ +name: integration_tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + + swift-button-functional-test: + runs-on: macOS-latest + defaults: + run: + working-directory: Samples/Swift/DaysUntilBirthday + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build test target for Google Sign-in button for Swift + run: | + xcodebuild \ + -project DaysUntilBirthday.xcodeproj \ + build-for-testing \ + -scheme DaysUntilBirthday\ \(iOS\) \ + -sdk iphonesimulator \ + -destination 'platform=iOS Simulator,name=iPhone 11' + - name: Run test target for Google Sign-in button for Swift + env: + EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }} + PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }} + run: | + xcodebuild \ + -project DaysUntilBirthday.xcodeproj \ + test-without-building \ + -scheme DaysUntilBirthday\ \(iOS\) \ + -sdk iphonesimulator \ + -destination 'platform=iOS Simulator,name=iPhone 11' \ + EMAIL_SECRET=$EMAIL_SECRET \ + PASSWORD_SECRET=$PASSWORD_SECRET diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36e6965f..98bd64b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -66,33 +66,3 @@ jobs: -destination ${{ matrix.destination }} \ test-without-building - swift-button-functional-test: - if: ${{ false }} # Disable integration tests while we figure out OTAs - runs-on: macOS-latest - defaults: - run: - working-directory: Samples/Swift/DaysUntilBirthday - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Build test target for Google Sign-in button for Swift - run: | - xcodebuild \ - -project DaysUntilBirthday.xcodeproj \ - build-for-testing \ - -scheme DaysUntilBirthday\ \(iOS\) \ - -sdk iphonesimulator \ - -destination 'platform=iOS Simulator,name=iPhone 11' - - name: Run test target for Google Sign-in button for Swift - env: - EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }} - PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }} - run: | - xcodebuild \ - -project DaysUntilBirthday.xcodeproj \ - test-without-building \ - -scheme DaysUntilBirthday\ \(iOS\) \ - -sdk iphonesimulator \ - -destination 'platform=iOS Simulator,name=iPhone 11' \ - EMAIL_SECRET=$EMAIL_SECRET \ - PASSWORD_SECRET=$PASSWORD_SECRET