Skip to content

Fix Discord occasionally breaking #79

Fix Discord occasionally breaking

Fix Discord occasionally breaking #79

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@v4
with:
java-version: 21
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/actions/setup-gradle@v3
with:
arguments: shadowJar
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.3.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