-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (49 loc) · 1.25 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
name: Cocoapods
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'
- 'codecov.yml'
- 'LICENSE'
- 'README.md'
jobs:
lint:
strategy:
matrix:
linttype: [Dynamic, Static]
name: Lint
runs-on: macOS-11
env:
LOGSDIR: /tmp/.keyvalueobservation.cocoapods/Logs/${{ matrix.linttype }}
LINT_TYPE: ${{ matrix.linttype }}
steps:
- name: Checkout Code
uses: actions/checkout@v2
- 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@v2
if: always()
with:
name: ${{ matrix.linttype }}Logs
path: ${{ env.LOGSDIR }}/*.log