Skip to content

Commit

Permalink
Adding maven build logic
Browse files Browse the repository at this point in the history
  • Loading branch information
poudelpra committed Sep 2, 2024
1 parent 86991e0 commit f870a7a
Showing 1 changed file with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven
run-name: maven-ci-build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
branches:
- main
path-ignore:
- '.git/**'
- '.github/**'

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17' ]

steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{matrix.java}}
uses: actions/setup-java@v4
with:
java-version: ${{matrix.java}}
distribution: 'adopt'
cache: maven
- name: Build with Maven Wrapper
run: ./mvnw -B package
maven-build:
runs-on: ubuntu-latest
steps:
- name: Running Maven Test
run: echo "The username is $${{ input.username }}"

0 comments on commit f870a7a

Please sign in to comment.