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 17, 2024
1 parent 2db311a commit 59fca29
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@

# Continuous Integration
name: Build

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

jobs:
build:

name: Build on JDK${{ matrix.jdk }}
runs-on: ubuntu-latest

strategy:
matrix:
jdk: [ 17, 21 ]

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: ${{ matrix.jdk }}

# ================================
# 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 -x check

# ================================
# CHECK
# ================================
- name: Check
run: ./gradlew check

0 comments on commit 59fca29

Please sign in to comment.