mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 13:08:48 +07:00
42a8387646
* Updated setup-gradle in bid to fix install * Try setup android SDK manually * Increase java version to 17 * Remove Android SDK manual download, let's see if it works without * Upgraded the rest of the pipelines to java 17 * Added the setup since it appears to be required to all steps
39 lines
739 B
YAML
39 lines
739 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: 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 detekt/config/detekt-errors.yml
|
|
|
|
- name: Detekt warnings
|
|
run: detekt-cli --parallel --config detekt/config/detekt-warnings.yml
|