From fe8e5ef6cc8383aec9dcd379a2abad34ca2939e0 Mon Sep 17 00:00:00 2001 From: Walter Oggioni Date: Tue, 16 Jun 2026 22:23:52 +0800 Subject: [PATCH] added test CI pipeline on hostinger runner --- .gitea/workflows/build-dev.yaml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .gitea/workflows/build-dev.yaml diff --git a/.gitea/workflows/build-dev.yaml b/.gitea/workflows/build-dev.yaml new file mode 100644 index 0000000..273cdd4 --- /dev/null +++ b/.gitea/workflows/build-dev.yaml @@ -0,0 +1,40 @@ +name: CI +on: + push: + branches: [ dev ] +env: + JAVA_VERSION: '21' + GRADLE_VERSION: '8.14.5' + RUNNER_TOOL_CACHE: /var/lib/gitea-runner/.toolcache + +jobs: + build: + name: Build and Test + runs-on: hostinger + timeout-minutes: 30 + container: + image: gitea.woggioni.net/woggioni/gitea-runner/java:latest + volumes: + - java-builder:/var/lib/gitea-runner + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 1 + + - name: Set up JDK + uses: actions/setup-java@v5 + with: + distribution: 'oracle' + java-version: ${{ env.JAVA_VERSION }} + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v6 + with: + gradle-version: ${{ env.GRADLE_VERSION }} + # Only the main branch writes to the cache; PRs/feature branches read-only + cache-read-only: false + + - name: Run Gradle build + run: ./gradlew build --no-daemon