Skip to content

Merge pull request #14 from jetbrains-academy/arseniy/improve-github-… #60

Merge pull request #14 from jetbrains-academy/arseniy/improve-github-…

Merge pull request #14 from jetbrains-academy/arseniy/improve-github-… #60

name: Gradle Build With Detekt
on: [push, pull_request]
# Allow cancelling all previous runs for the same branch
# See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: liberica
- name: Gradle Wrapper Validation
uses: gradle/[email protected]
- uses: gradle/gradle-build-action@v2
with:
arguments: build --stacktrace -PrunDetekt