Skip to content

Commit 660fcbf

Browse files
committed
Update lint and API check jobs in workflow configuration
1 parent 414c0fc commit 660fcbf

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ concurrency:
1414
jobs:
1515
lintAndApiChecks:
1616
runs-on: macos-latest
17-
permissions:
18-
contents: write
1917
steps:
2018
- uses: actions/checkout@v4
2119
with:
@@ -28,11 +26,10 @@ jobs:
2826
- uses: maxim-lobanov/setup-xcode@v1
2927
with:
3028
xcode-version: latest-stable
31-
- name: Format Kotlin
32-
run: ./gradlew formatKotlin
29+
- name: Lint Kotlin
30+
run: ./gradlew lintKotlin
3331
- name: Api File Update
34-
run: ./gradlew apiDump
35-
- uses: stefanzweifel/git-auto-commit-action@v6
32+
run: ./gradlew apiCheck
3633
jobMatrixSetup:
3734
needs: lintAndApiChecks
3835
runs-on: macos-latest
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Pull Request Target
2+
3+
on:
4+
pull_request_target:
5+
branches: [ master ]
6+
7+
concurrency:
8+
group: ci-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
lintAndApiChecks:
13+
runs-on: macos-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.head_ref }}
20+
- name: Set up JDK
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: 'zulu'
24+
java-version: '17'
25+
- uses: maxim-lobanov/setup-xcode@v1
26+
with:
27+
xcode-version: latest-stable
28+
- name: Format Kotlin
29+
run: ./gradlew formatKotlin
30+
- name: Api File Update
31+
run: ./gradlew apiDump
32+
- uses: stefanzweifel/git-auto-commit-action@v6

0 commit comments

Comments
 (0)