From 38025a6b35e5c39f8f932612460c2de8c0f2fa46 Mon Sep 17 00:00:00 2001 From: dragonx943 Date: Mon, 11 Aug 2025 00:36:10 +0700 Subject: [PATCH] ci: Change Java version, use compileKotlin instead of assemble --- .github/workflows/test-branch.yml | 11 ++++------- .github/workflows/test-parsers.yml | 15 +++++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test-branch.yml b/.github/workflows/test-branch.yml index 9b2347c8b..31aa0eb33 100644 --- a/.github/workflows/test-branch.yml +++ b/.github/workflows/test-branch.yml @@ -10,16 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository 🌏 + - name: Checkout + Set-up enviroment 🌏 uses: actions/checkout@v4 - - - name: Set up enviroment 🔧 uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' + cache: 'gradle' - - name: Compile latest parsers 🚀 - run: | - chmod +x ./gradlew - ./gradlew compileKotlin + - name: Compile parsers 🚀 + run: ./gradlew compileKotlin \ No newline at end of file diff --git a/.github/workflows/test-parsers.yml b/.github/workflows/test-parsers.yml index 2823f3fe1..236aa5d7a 100644 --- a/.github/workflows/test-parsers.yml +++ b/.github/workflows/test-parsers.yml @@ -1,4 +1,4 @@ -name: Parsers test +name: Parsers test for PRs on: workflow_dispatch: @@ -13,10 +13,13 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - java-version: '11' + - name: Checkout + Set-up enviroment 🌏 + uses: actions/checkout@v3 + uses: actions/setup-java@v3 + with: + java-version: '17' distribution: 'temurin' cache: 'gradle' - - run: ./gradlew assemble + + - name: Compile parsers 🚀 + run: ./gradlew assemble \ No newline at end of file