mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-03 12:54:43 +07:00
50a6e5bbdb
* Allow almost any mod zip download source * Linting * Add basic "Release page section" link capability, more linting * Refactor: Move Github to logic * Refactor: Split Github into files * Refactor: centralizing all API knowledge * Try bumping detekt version to fix false complaint * Attempt to trick detekt to not complain about `it` * Better overload-ambiguity-solving + detekt-compatible SAM use
39 lines
741 B
YAML
39 lines
741 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.4'
|
|
|
|
- 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
|