-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (34 loc) · 952 Bytes
/
lint-ios.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: lint-ios
on:
pull_request:
branches: [main]
paths:
- "packages/react-native-avoid-softinput/ios/**"
- ".github/workflows/lint-ios.yml"
jobs:
lint-ios:
name: Lint ObjC
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install modules
uses: actions/setup-node@v4
with:
cache: "yarn"
registry-url: "https://registry.npmjs.org"
cache-dependency-path: "**/yarn.lock"
- run: yarn
- run: yarn install:pods
- name: ClangFormat
run: |
#!/bin/bash
if ! command -v clang-format &> /dev/null
then
echo "ClangFormat is not installed. Installing"
brew install clang-format
fi
yarn format:ios:objc