name: sample gradle build and test run-name: Build started by $ {{gitea.actor}} on: pull_request: branches: [test] jobs: build: runs-on: ubuntu-latest steps: - name: Check out repository code uses: actions/checkout@v4 - name: JDK setup uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '17' - name: Validate Gradle Wrapper - name: Get latest tag dry run run: | echo "VERSION=$(git describe --tags --abbrev=0)" echo $VERSION echo "MAJOR=$(echo $VERSION | cut -d "." -f 1)" echo "MINOR=$(echo $VERSION | cut -d "." -f 2)" echo "PATCH=$(echo $VERSION | cut -d "." -f 3)" uses: gradle/actions/wrapper-validation@v3 - name: Gradle build run: ./gradlew build --info