Release latest patch version #74
Workflow file for this run
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: Check Pull Request | |
on: | |
pull_request: | |
branches: | |
- stable | |
- develop | |
paths: | |
- '**/*.kt' | |
- '**/*.kts' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v4 | |
# https://github.com/marketplace/actions/setup-java-jdk | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Set gradlew execution permission | |
run: chmod u+x gradlew | |
# https://github.com/marketplace/actions/gradle-build-action | |
- name: Build artifacts | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build --stacktrace | |
ktlint: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v4 | |
# https://github.com/marketplace/actions/run-ktlint-with-reviewdog | |
- uses: ScaCap/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
ktlint_version: '1.0.1' | |
reporter: github-pr-review | |
fail_on_error: true | |
detekt: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- uses: actions/checkout@v4 | |
# https://github.com/marketplace/actions/run-detekt-with-reviewdog | |
- name: Run detekt with reviewdog | |
uses: alaegin/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
detekt_config: config/detekt/detekt.yml | |
detekt_build_upon_default_config: true | |
reporter: github-pr-review |