Skip to content

Commit

Permalink
Add GHA build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd authored Nov 10, 2023
1 parent 6dfdb1f commit 5cc36d1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Java CI with Maven

on:
push:
branches: [ "graylog" ]
pull_request:
branches: [ "graylog" ]

# Cancel running build when a new ref gets pushed.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

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

- name: Build with Maven
env:
MAVEN_OPTS: >
-DtrimStackTrace=false
-Djansi.force=true
MAVEN_ARGS: >
--show-version --batch-mode --fail-fast --update-snapshots --no-transfer-progress
run: mvn verify -Pits --file pom.xml

0 comments on commit 5cc36d1

Please sign in to comment.