forked from nextcloud/news-android
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1 KB
/
analysis.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
name: Analysis
# Declare default permissions as read only.
permissions: read-all
on: [push, pull_request]
jobs:
detekt:
name: detekt
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3.13.0
with:
distribution: 'temurin'
java-version: 17
- name: Run detekt
run: bash ./gradlew detekt
spotless:
name: Spotless (ktlint)
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3.13.0
with:
distribution: 'temurin'
java-version: 17
- name: Run spotless
run: bash ./gradlew spotlessCheck