adding gh action maven build
This commit is contained in:
@@ -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
|
run: mvn -B package --file pom.xml
|
||||||
|
|
||||||
- name: Build project with Maven
|
|
||||||
run: mvn -B package --file pom.xml
|
|
||||||
|
|||||||
Reference in New Issue
Block a user