Release v1.5.0 #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |