2023-05-10 15:46:16 +07:00
|
|
|
name: Detekt
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
detekt:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up JDK
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: '11'
|
|
|
|
distribution: 'adopt'
|
|
|
|
|
|
|
|
- name: Setup Detekt
|
|
|
|
id: setup_detekt
|
|
|
|
uses: peter-murray/setup-detekt@v2
|
|
|
|
with:
|
2023-09-13 23:42:22 +07:00
|
|
|
detekt_version: '1.23.1'
|
2023-05-10 15:46:16 +07:00
|
|
|
|
2023-05-15 01:55:36 +07:00
|
|
|
- name: Detekt errors
|
|
|
|
run: detekt-cli --parallel --config detekt/config/detekt-errors.yml
|
|
|
|
|
|
|
|
- name: Detekt warnings
|
|
|
|
run: detekt-cli --parallel --config detekt/config/detekt-warnings.yml
|