| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- name: sessions
- on:
- workflow_dispatch:
- pull_request:
- paths:
- - 'FirebaseSessions**'
- - 'FirebaseSessions.podspec'
- - '.github/workflows/sessions.yml'
- - 'Gemfile*'
- schedule:
- # Run every day at 9am (PST) - cron uses UTC times
- - cron: '0 1 * * *'
- concurrency:
- group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
- cancel-in-progress: true
- jobs:
- spm:
- uses: ./.github/workflows/common.yml
- with:
- target: FirebaseSessionsUnit
- catalyst:
- uses: ./.github/workflows/common_catalyst.yml
- with:
- product: FirebaseSessions
- target: FirebaseSessions-Unit-unit
- pod-lib-lint:
- # Don't run on private repo unless it is a PR.
- if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
- strategy:
- matrix:
- target: [ios, tvos, macos, watchos]
- build-env:
- - os: macos-14
- xcode: Xcode_16.2
- tests:
- swift_version: 5.9
- # Flaky tests on CI
- - os: macos-15
- xcode: Xcode_16.3
- tests: --skip-tests
- swift_version: 5.9
- # Flaky tests on CI
- - os: macos-15
- xcode: Xcode_16.2
- tests: --skip-tests
- swift_version: 6.0
- runs-on: ${{ matrix.build-env.os }}
- steps:
- - uses: actions/checkout@v4
- - uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
- - name: Setup Bundler
- run: scripts/setup_bundler.sh
- - name: Xcode
- run: sudo xcode-select -s /Applications/${{ matrix.build-env.xcode }}.app/Contents/Developer
- - name: Set Swift swift_version
- run: sed -i "" "s/s.swift_version[[:space:]]*=[[:space:]]*'5.9'/s.swift_version = '${{ matrix.build-env.swift_version }}'/" FirebaseSessions.podspec
- - uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3
- with:
- timeout_minutes: 120
- max_attempts: 3
- retry_on: error
- retry_wait_seconds: 120
- command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseSessions.podspec --platforms=${{ matrix.target }} ${{ matrix.build-env.tests }}
|