From b58cf32b7a9b0efd8413add4f5d18a9b3472b29d Mon Sep 17 00:00:00 2001 From: dragonx943 Date: Mon, 11 Aug 2025 00:46:15 +0700 Subject: [PATCH] ci: Upgrade actions version and split steps --- .github/workflows/test-branch.yml | 25 +++++++++++++------------ .github/workflows/test-parsers.yml | 10 ++++++---- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test-branch.yml b/.github/workflows/test-branch.yml index 31aa0eb3..490da74d 100644 --- a/.github/workflows/test-branch.yml +++ b/.github/workflows/test-branch.yml @@ -6,17 +6,18 @@ on: - master jobs: - build: - runs-on: ubuntu-latest + check-and-build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository 🌏 + uses: actions/checkout@v4 - steps: - - name: Checkout + Set-up enviroment 🌏 - uses: actions/checkout@v4 - uses: actions/setup-java@v4 - with: - java-version: '17' - distribution: 'temurin' - cache: 'gradle' + - name: Set up enviroment 🔧 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: 'gradle' - - name: Compile parsers 🚀 - run: ./gradlew compileKotlin \ No newline at end of file + - 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 236aa5d7..66c5317b 100644 --- a/.github/workflows/test-parsers.yml +++ b/.github/workflows/test-parsers.yml @@ -13,13 +13,15 @@ jobs: build-and-test: runs-on: ubuntu-latest steps: - - name: Checkout + Set-up enviroment 🌏 - uses: actions/checkout@v3 - uses: actions/setup-java@v3 + - name: Checkout repository 🌏 + uses: actions/checkout@v4 + + - name: Set up enviroment 🔧 + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' cache: 'gradle' - name: Compile parsers 🚀 - run: ./gradlew assemble \ No newline at end of file + run: ./gradlew compileKotlin \ No newline at end of file