Files
jwo/.gitea/workflows/build-dev.yaml
T
woggioni 442418f71e
CI / Build and Test (push) Failing after 2m50s
added test CI pipeline on hostinger runner
2026-06-16 22:23:52 +08:00

42 lines
998 B
YAML

name: CI
on:
push:
branches: [ dev ]
env:
JAVA_VERSION: '21'
GRADLE_VERSION: '8.14.5'
jobs:
build:
name: Build and Test
runs-on: hostinger
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: ${{ env.GRADLE_VERSION }}
# Only the main branch writes to the cache; PRs/feature branches read-only
cache-read-only: false
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v3
with:
distribution-type: 'bin'
version: ${{ env.GRADLE_VERSION }}
- name: Run Gradle build
run: ./gradlew build --no-daemon