mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-08 14:33:42 +07:00
841a1aa564
* ci: improved detekt configuration it still needs some work but it's getting there * detekt: separated errors from warnings Detekt doesn't currently have a mechanism for failing only on specific issues workaround suggested by the maintainer of Detekt * rebased on master * fix: resolve ExplicitItLambdaParameter * fix: fix last star import
40 lines
746 B
YAML
40 lines
746 B
YAML
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:
|
|
detekt_version: '1.23.0-RC3'
|
|
|
|
- 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
|
|
|