-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 977 Bytes
/
pod-lint.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
name: Run lint and static analysis
on:
pull_request:
types:
- opened
- synchronize
jobs:
pod-lint:
if: ${{ github.event.pull_request.base.ref == 'main' }}
runs-on: macos-latest
name: "Pod lint"
strategy:
fail-fast: false
matrix:
version: ["5"]
steps:
- name: Cancel previous jobs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # v0.12.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: ruby/setup-ruby@943103cae7d3f1bb1e4951d5fcc7928b40e4b742 # v1.177.1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Lint pod
run: |
set -eo pipefail
pod lib lint --allow-warnings --swift-version=${{ matrix.version }} --analyze
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}