Skip to content

Commit 00f6eb4

Browse files
committed
Refactor workflow to separate Kotlin formatting and API checks
1 parent a1c67d4 commit 00f6eb4

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/pull_request.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,24 @@ on:
88
branches: [ master ]
99

1010
jobs:
11-
lint:
12-
runs-on: ubuntu-latest
11+
formatKotlin:
12+
runs-on: macos-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
- uses: actions/checkout@v4
17+
with:
18+
ref: ${{ github.head_ref }}
1519
- name: Set up JDK
1620
uses: actions/setup-java@v4
1721
with:
1822
distribution: 'zulu'
1923
java-version: '17'
20-
- name: ktLint
21-
run: ./gradlew lintKotlin
22-
apiCheck:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v4
26-
- name: Set up JDK
27-
uses: actions/setup-java@v4
28-
with:
29-
distribution: 'zulu'
30-
java-version: '17'
31-
- name: Run Api Check
32-
run: ./gradlew apiCheck
24+
- name: Format Kotlin
25+
run: ./gradlew formatKotlin
26+
- name: Api File Update
27+
run: ./gradlew apiDump
28+
- uses: stefanzweifel/git-auto-commit-action@v6
3329
jobMatrixSetup:
3430
runs-on: macos-latest
3531
outputs:

0 commit comments

Comments
 (0)