Skip to content

Merge pull request #61 from cianru/snapshot-1.5.0 #140

Merge pull request #61 from cianru/snapshot-1.5.0

Merge pull request #61 from cianru/snapshot-1.5.0 #140

Workflow file for this run

name: Code Style Tests
on: [push, pull_request]
jobs:
detekt:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run detekt checks
run: ./gradlew :plugin:detekt
check_jdk_version:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 18
uses: actions/setup-java@v1
with:
java-version: 18
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build plugin
id: build_step
run: ./gradlew :plugin:publishToMavenLocal
continue-on-error: true
- name: Should get fail due to wrong JDK version
if: steps.build_step.outcome == 'success'
run: exit 1