mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 13:08:48 +07:00
1155aec310
* Move detekt configs to workflow * Update documentation
39 lines
775 B
YAML
39 lines
775 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@v4
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 17
|
|
distribution: 'adopt'
|
|
|
|
- name: Setup Detekt
|
|
id: setup_detekt
|
|
uses: peter-murray/setup-detekt@v2
|
|
with:
|
|
detekt_version: '1.23.4'
|
|
|
|
- name: Detekt errors
|
|
run: detekt-cli --parallel --config .github/workflows/detekt_config/detekt-errors.yml
|
|
|
|
- name: Detekt warnings
|
|
run: detekt-cli --parallel --config .github/workflows/detekt_config/detekt-warnings.yml
|