Skip to content

Commit

Permalink
Switch GitHub build to Maven wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-punko committed Jan 8, 2024
1 parent 3f59ec6 commit 2622dc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/maven-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ jobs:
java-version: '17'
cache: 'maven'

- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Grant execute permission for mvnw
run: chmod +x mvnw

- name: Build with Maven wrapper
run: ./mvnw -B package --file pom.xml
9 changes: 6 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ jobs:
java-version: '17'
cache: 'maven'

- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Grant execute permission for mvnw
run: chmod +x mvnw

- name: Build with Maven wrapper
run: ./mvnw -B package --file pom.xml

- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
Expand All @@ -32,7 +35,7 @@ jobs:
git config --global user.name 'Github workflow'
git config --global user.email 'nowhere@gmail.com'
git add -A
git commit -m "Autogenerated JaCoCo coverage badge"
git commit -m "Autogenerated JaCoCo coverage badge (and other stuff in diff)"
git push
fi
Expand Down

0 comments on commit 2622dc9

Please sign in to comment.