diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..548fbd5 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,37 @@ +name: PR Check + +on: + pull_request: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + check: + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Set up JDK 21 + uses: actions/setup-java@v6 + with: + distribution: temurin + java-version: 21 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v6 + with: + cache-read-only: ${{ github.ref != 'refs/heads/main' }} + + - name: Build, test, lint + run: ./gradlew assembleDebug test lint diff --git a/coding-convention/build.gradle.kts b/coding-convention/build.gradle.kts index 491459a..821cfd8 100644 --- a/coding-convention/build.gradle.kts +++ b/coding-convention/build.gradle.kts @@ -1,3 +1,5 @@ +import org.gradle.api.tasks.testing.logging.TestExceptionFormat + plugins { alias(libs.plugins.aide.jvm.library) } @@ -13,4 +15,7 @@ tasks.test { exclude("**/build/**") } ) + testLogging { + exceptionFormat = TestExceptionFormat.FULL + } }