Skip to content

Commit

Permalink
Create CI build in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmcnees authored Jul 31, 2024
1 parent ed3dc71 commit c75d1d1
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/continuous-integration-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI Build

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Build Main Branch
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Build Initial with Maven
working-directory: ./initial
run: ./mvnw --batch-mode clean package

- name: Build Initial with Gradle
working-directory: ./initial
run: ./gradlew build

- name: Build Complete with Maven
working-directory: ./complete
run: ./mvnw --batch-mode clean package -DskipTests

- name: Build Complete with Gradle
working-directory: ./complete
run: ./gradlew build -x test

0 comments on commit c75d1d1

Please sign in to comment.