-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
41 lines (36 loc) · 972 Bytes
/
check-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
37
38
39
40
41
name: Check iOS
on:
push:
branches:
- master
paths:
- '.github/workflows/check-ios.yml'
- './packages/react-native-video/ios/**'
pull_request:
paths:
- '.github/workflows/check-ios.yml'
- './packages/react-native-video/ios/**'
jobs:
Swift-Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint with SwiftLint
uses: norio-nomura/action-swiftlint@master
with:
args: --strict
env:
WORKING_DIRECTORY: ./packages/react-native-video/ios
Swift-Format:
runs-on: macos-latest
defaults:
run:
working-directory: ./packages/react-native-video/ios
steps:
- uses: actions/checkout@v4
- name: Install SwiftFormat
run: brew install swiftformat
- name: Format Swift code
run: swiftformat --verbose .
- name: Verify formatted code is unchanged
run: git diff --exit-code HEAD