Skip to content

Commit

Permalink
chore: create build.yml for gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
llorentelemmc authored Jul 1, 2024
1 parent 6c3262c commit 1befdc4
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Java CI with Gradle

on:
push:
branches:
- main
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
runTests:
description: 'Run tests'
required: true
default: 'false'
type: choice
options:
- 'true'
- 'false'
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Execute Gradle build
run: |
if [[ "${{ github.event.inputs.runTests }}" == 'true' ]]; then
./gradlew build
else
./gradlew build -x test
fi

0 comments on commit 1befdc4

Please sign in to comment.