-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (54 loc) · 1.46 KB
/
verify.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
name: Verify PR
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
concurrency:
group: github-${{ github.ref }}
cancel-in-progress: true
jobs:
ktlint:
name: Run Kotlin lint
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
permissions:
contents: write
pull-requests: write
discussions: write
repository-projects: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: ktlint
uses: ScaCap/action-ktlint@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail_on_error: true
androidLint:
name: Run Android Lint
needs: [ ktlint ]
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v4
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
- name: Run Gradle
run: ./gradlew :komoju-android-sdk:lintDebug
swiftlint:
runs-on: ubuntu-latest
name: SwiftLint
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: swiftLint on ios sdk
uses: norio-nomura/[email protected]
with:
args: --strict
env:
WORKING_DIRECTORY: komoju-ios-sdk