Skip to content

Commit 70d0514

Browse files
authored
Merge pull request GitLiveApp#571 from siarhei-luskanau/lintKotlin
Format kotlin files in Github Actions
2 parents d80a467 + 037a403 commit 70d0514

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/push.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Push
2+
3+
on: [ push ]
4+
5+
jobs:
6+
formatKotlin:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: ${{ github.head_ref }}
14+
- name: Set up JDK
15+
uses: actions/setup-java@v4
16+
with:
17+
distribution: 'zulu'
18+
java-version: '17'
19+
- name: formatKotlin
20+
run: ./gradlew formatKotlin
21+
- uses: stefanzweifel/git-auto-commit-action@v5
22+
- name: lintKotlin
23+
run: ./gradlew lintKotlin

0 commit comments

Comments
 (0)