Ensure additionalTokenRefreshParametersForAuthSession returns a string dictionary
#957
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: integration_tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| grab-pr-body: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| PR_BODY: ${{ steps.body.outputs.PR_BODY }} | |
| steps: | |
| - id: body | |
| env: | |
| PR_BODY: ${{ github.event.pull_request.body }} | |
| run: | | |
| { | |
| echo "PR_BODY<<EOF" | |
| echo "$PR_BODY" | |
| echo "EOF" | |
| } >> "$GITHUB_OUTPUT" | |
| check-pr-body-for-key: | |
| runs-on: ubuntu-latest | |
| needs: grab-pr-body | |
| outputs: | |
| RUN_INTEGRATION: ${{ steps.check_key.outputs.RUN_INTEGRATION }} | |
| steps: | |
| - id: check_key | |
| env: | |
| PR_BODY: ${{ needs.grab-pr-body.outputs.PR_BODY }} | |
| SKIP_KEY: "SKIP_INTEGRATION_TESTS=YES" | |
| name: Check for key and set bool to skip integration tests | |
| run: | | |
| if [[ "$PR_BODY" == *"$SKIP_KEY"* ]]; then | |
| echo "Skipping integration tests for PR body:" | |
| echo "$PR_BODY" | |
| echo "RUN_INTEGRATION=no" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "Running integration tests for PR body:" | |
| echo "$PR_BODY" | |
| echo "RUN_INTEGRATION=yes" >> "$GITHUB_OUTPUT" | |
| fi | |
| swift-button-functional-test: | |
| runs-on: macos-15 | |
| needs: check-pr-body-for-key | |
| # Don't run if triggered by a PR from a fork since our Secrets won't be provided to the runner. | |
| if: ${{ needs.check-pr-body-for-key.outputs.RUN_INTEGRATION == 'yes' && !github.event.pull_request.head.repo.fork }} | |
| defaults: | |
| run: | |
| working-directory: Samples/Swift/DaysUntilBirthday | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer | |
| - name: Build test target for Google Sign-in button for Swift | |
| run: | | |
| xcodebuild \ | |
| -project DaysUntilBirthday.xcodeproj \ | |
| build-for-testing \ | |
| -scheme DaysUntilBirthday\ \(iOS\) \ | |
| -sdk iphonesimulator \ | |
| - 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 16,OS=18.6' \ | |
| EMAIL_SECRET=$EMAIL_SECRET \ | |
| PASSWORD_SECRET=$PASSWORD_SECRET | |
| app-check-api-token-tests: | |
| runs-on: macos-15 | |
| # Don't run if triggered by a PR from a fork since our Secrets won't be provided to the runner. | |
| if: "!github.event.pull_request.head.repo.fork" | |
| defaults: | |
| run: | |
| working-directory: Samples/Swift/AppAttestExample | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer | |
| - name: Build test target for App Check Example | |
| run: | | |
| xcodebuild \ | |
| -project AppAttestExample.xcodeproj \ | |
| build-for-testing \ | |
| -scheme AppAttestExample \ | |
| -sdk iphonesimulator \ | |
| - name: Run test target for App Check Example | |
| env: | |
| AppCheckDebugToken : ${{ secrets.APP_CHECK_DEBUG_TOKEN }} | |
| APP_CHECK_WEB_API_KEY : ${{ secrets.APP_CHECK_WEB_API_KEY }} | |
| run: | | |
| xcodebuild \ | |
| -project AppAttestExample.xcodeproj \ | |
| test-without-building \ | |
| -scheme AppAttestExample \ | |
| -sdk iphonesimulator \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.6' \ | |
| AppCheckDebugToken=$AppCheckDebugToken \ | |
| APP_CHECK_WEB_API_KEY=$APP_CHECK_WEB_API_KEY |