| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- name: instanceid
- on:
- push:
- branches:
- - master
- pull_request:
- paths:
- - 'FirebaseInstanceID**'
- - 'Firebase/InstanceID/**'
- - 'Example/InstanceID/**'
- - '.github/workflows/instanceid.yml'
- - 'Gemfile'
- schedule:
- # Run every day at 11pm (PST) - cron uses UTC times
- - cron: '0 7 * * *'
- jobs:
- pod-lib-lint:
- runs-on: macOS-latest
- env:
- plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
- strategy:
- matrix:
- target: [ios, tvos, macos]
- steps:
- - uses: actions/checkout@v2
- - name: Setup Bundler
- run: scripts/setup_bundler.sh
- - name: Install GoogleService-Info.plist
- run: |
- mkdir -p Example/InstanceID/Resources
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
- Example/InstanceID/Resources/GoogleService-Info.plist "$plist_secret"
- - name: Get boolean for secrets available
- id: secrets
- run: echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
- - name: Build and test
- run: |
- export FIR_IID_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
- scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstanceID.podspec --platforms=${{ matrix.target }}
- catalyst:
- runs-on: macOS-latest
- steps:
- - uses: actions/checkout@v2
- - name: Setup Bundler
- run: scripts/setup_bundler.sh
- - name: Setup project and Build for Catalyst
- # Only build the unit tests on Catalyst. Test stopped working when GHA moved to Xcode 11.4.1.
- run: scripts/test_catalyst.sh FirebaseInstanceID build FirebaseInstanceID-Unit-unit
- instanceid-cron-only:
- runs-on: macos-latest
- if: github.event_name == 'schedule'
- env:
- plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
- FIR_IID_INTEGRATION_TESTS_REQUIRED: ${{ secrets.GHASecretsGPGPassphrase1 }}
- strategy:
- matrix:
- target: [ios, tvos, macos]
- flags: [
- '--use-modular-headers',
- '--use-libraries'
- ]
- needs: pod-lib-lint
- steps:
- - uses: actions/checkout@v2
- - name: Setup Bundler
- run: scripts/setup_bundler.sh
- - name: Install GoogleService-Info.plist
- run: |
- mkdir -p Example/InstanceID/Resources
- scripts/decrypt_gha_secret.sh scripts/gha-encrypted/Installations/GoogleService-Info.plist.gpg \
- Example/InstanceID/Resources/GoogleService-Info.plist "$plist_secret"
- - name: Get boolean for secrets available
- id: secrets
- run: echo "::set-output name=val::$([[ -z $plist_secret ]] && echo "0" || echo "1")"
- - name: PodLibLint InstanceID Cron
- run: |
- export FIR_IID_INTEGRATION_TESTS_REQUIRED=${{ steps.secrets.outputs.val }}
- FIR_IID_INTEGRATION_TESTS_REQUIRED="$plist_secret" scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseInstanceID.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
|