-
Notifications
You must be signed in to change notification settings - Fork 14
72 lines (63 loc) · 1.59 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Cocoapods
defaults:
run:
shell: bash -eo pipefail {0}
on:
workflow_dispatch:
push:
branches:
- '**'
tags-ignore:
- '**'
paths-ignore:
- '.github/**' # Ignore all files under '.github'
- '!.github/workflows/cocoapods.yml' # Except for this workflow
- '.gitignore'
- '.remarkrc'
- '.swiftlint.yml'
- 'codecov.yml'
- 'Documentation/**'
- 'LICENSE'
- 'Package.swift'
- 'README.md'
jobs:
lint:
strategy:
matrix:
linttype: [Dynamic, Static]
os: [macOS-13]
xcode: ['15.0']
name: Lint
runs-on: ${{ matrix.os }}
env:
LOGSDIR: /tmp/.cborcoding.cocoapods/Logs/${{ matrix.linttype }}
LINT_TYPE: ${{ matrix.linttype }}
steps:
- name: Select Xcode Version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Checkout Code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Cocoapods
uses: maxim-lobanov/setup-cocoapods@v1
with:
version: latest
- name: Setup Environment
run: |
mkdir -p "$LOGSDIR"
- name: Lint
run: |
if [ "$LINT_TYPE" == "Dynamic" ]; then
pod lib lint --verbose 2>&1 | tee "$LOGSDIR/PodLint.log"
else
pod lib lint --verbose --use-libraries 2>&1 | tee "$LOGSDIR/PodLint.log"
fi
- name: Upload Logs
uses: actions/upload-artifact@v3
if: always()
with:
name: ${{ matrix.linttype }}Logs
path: ${{ env.LOGSDIR }}/*.log