Skip to content

Commit

Permalink
Add build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermocalvo committed Jun 20, 2024
1 parent 49fa936 commit e89d4e2
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

# Continuous Integration
name: Build

on:
push:
branches:
- '*'
pull_request:
branches:
- main
- develop

jobs:
build:

name: Build
runs-on: ubuntu-latest

steps:

# ================================
# SHALLOW CLONE
# ================================
- name: Shallow clone
uses: actions/checkout@v4

# ================================
# VALIDATE GRADLE WRAPPER
# ================================
- name: Validate Gradle Wrapper files
uses: gradle/actions/wrapper-validation@v3

# ================================
# SET UP JDK
# ================================
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-package: jdk
java-version: 21

# ================================
# SET UP GRADLE
# ================================
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
cache-read-only: ${{ github.ref_name != 'main' && github.ref_name != 'develop' }}

# ================================
# BUILD
# ================================
- name: Build
run: ./gradlew build

0 comments on commit e89d4e2

Please sign in to comment.