-
Notifications
You must be signed in to change notification settings - Fork 151
48 lines (46 loc) · 1.38 KB
/
cocoapods.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 5:12 UTC
- cron: '12 5 1,15 * *'
# Also allow manual triggering from the github UX to revalidate things.
workflow_dispatch:
jobs:
pod-lib-lint:
runs-on: macos-15
strategy:
fail-fast: false
matrix:
# watchOS fails linting when there are test, wedge in --skip-tests for
# those runs.
PLATFORM: ["ios", "macos", "tvos", "visionos", "watchos --skip-tests"]
CONFIGURATION: ["Debug", "Release"]
steps:
- uses: actions/checkout@v4
# Manually expanding out static frameworks to avoid making to many jobs.
- name: Pod lib lint
run: |
pod lib lint --verbose \
--configuration=${{ matrix.CONFIGURATION }} \
--platforms=${{ matrix.PLATFORM }} \
GTMSessionFetcher.podspec
- name: Pod lib lint - Use Static Frameworks
run: |
pod lib lint --verbose --use-static-frameworks \
--configuration=${{ matrix.CONFIGURATION }} \
--platforms=${{ matrix.PLATFORM }} \
GTMSessionFetcher.podspec