adding gh action maven build

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