-
Notifications
You must be signed in to change notification settings - Fork 1.2k
47 lines (40 loc) · 1.04 KB
/
intelligence-kt.yml
File metadata and controls
47 lines (40 loc) · 1.04 KB
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
name: Intelligence Kotlin
on:
push:
branches:
- main
paths:
- 'intelligence/kt/**/*'
- '.github/workflows/intelligence-kt.yml'
pull_request:
branches:
- main
paths:
- 'intelligence/kt/**/*'
- '.github/workflows/intelligence-kt.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_id || github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
FLWR_TELEMETRY_ENABLED: 0
jobs:
fi_kt_format:
name: Format Check
runs-on: ubuntu-22.04
defaults:
run:
working-directory: intelligence/kt
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Run ktfmtCheck
run: |
./gradlew ktfmtCheck || (
echo "::error::Code is not properly formatted. Please run './gradlew ktfmtFormat'"
exit 1
)