From f47afe0e5a2029163c70c45c0233470f3e0599fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8A=E3=82=93=E3=81=94=E9=A3=B4196?= <132573268+Ringoame196@users.noreply.github.com> Date: Tue, 30 Dec 2025 16:17:13 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20PR=E6=99=82=E3=81=AB=E3=82=B3?= =?UTF-8?q?=E3=83=BC=E3=83=89=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92?= =?UTF-8?q?=E5=85=A5=E3=82=8C=E3=82=8B=20https://github.com/ringoame196-s-?= =?UTF-8?q?mcPlugin/Development/issues/2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-check.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pr-check.yml diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 0000000..176671f --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,33 @@ +name: Kotlin Lint & Build Check + +on: + pull_request: + branches: + - main + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-java@v4 + with: + java-version: '22' + distribution: 'temurin' + + - uses: actions/cache@v4 + with: + path: | + ~/.gradle/caches + ~/.gradle/wrapper + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle + + - name: Lint & Build + run: | + ./gradlew lintKotlin + ./gradlew build \ No newline at end of file