Update services. #259
Workflow file for this run
This file contains 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: CocoaPods | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'Sources/**' | |
- 'UnitTests/**' | |
- '*.podspec' | |
- '.github/workflows/cocoapods.yml' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'Sources/**' | |
- 'UnitTests/**' | |
- '*.podspec' | |
- '.github/workflows/cocoapods.yml' | |
schedule: | |
# Run the first and fifteenth of every month at 6:12 UTC | |
- cron: '12 6 1,15 * *' | |
jobs: | |
# Test with --no-subspecs because there are so many it takes a really long | |
# time, so this covers the Core spec and tests. | |
pod-lib-lint-core: | |
name: CocoaPods lib lint Core | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
pod_configuration: ["Debug", "Release"] | |
extra_flags: ["", "--use-static-frameworks"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "iOS, macOS, and tvOS" | |
# GitHub runners dropped visionOS. https://github.com/actions/runner-images/issues/10559 | |
run: | | |
pod lib lint --verbose ${{ matrix.extra_flags }} \ | |
--configuration=${{ matrix.pod_configuration }} \ | |
--platforms=ios,macos,tvos \ | |
--no-subspecs \ | |
--test-specs=Tests \ | |
GoogleAPIClientForREST.podspec | |
# No test specs, that still fails on CI. | |
- name: "watchOS" | |
run: | | |
pod lib lint --verbose ${{ matrix.extra_flags }} \ | |
--configuration=${{ matrix.pod_configuration }} \ | |
--platforms=watchos \ | |
--no-subspecs \ | |
--skip-tests \ | |
GoogleAPIClientForREST.podspec | |
# Repeat the validation just for macOS but allow all the subspecs to be | |
# validated also. Uses --skip-tests since they were done in Core. This is the | |
# longest validation be far, and adding other platforms would just use more | |
# resources without any real gain. | |
pod-lib-lint-subspecs: | |
name: CocoaPods lib lint SubSpecs | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
pod_configuration: ["Debug", "Release"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "macOS" | |
run: | | |
pod lib lint --verbose \ | |
--configuration=${{ matrix.pod_configuration }} \ | |
--platforms=macos \ | |
--skip-tests \ | |
GoogleAPIClientForREST.podspec |