adding gh action maven build

This commit is contained in:
2023-11-13 13:49:39 +00:00
parent 6f026636eb
commit 5fed36a86c
+8 -12
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' cache: maven
architecture: x64 - name: Build with Maven
cache: maven
- name: Build project with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml