adding gh action maven build

This commit is contained in:
2023-11-13 13:49:39 +00:00
parent 6f026636eb
commit 5fed36a86c
+5 -9
View File
@@ -1,22 +1,18 @@
name: Maven CI/CD name: Java CI with Maven
on: [workflow_dispatch] on: [workflow_dispatch]
jobs: jobs:
build_and_test: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
- name: Set up JDK 11 - name: Set up JDK 11
uses: actions/setup-java@v1 uses: actions/setup-java@v3
with:
with: with:
java-version: '11' java-version: '11'
distribution: 'adopt' distribution: 'adopt'
architecture: x64
cache: maven cache: maven
- name: Build with Maven
- name: Build project with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml