Use Maven Wrapper in CI Workflows and Update Dependencies #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release with JReleaser | |
# https://jreleaser.org/guide/latest/continuous-integration/github-actions.html | |
name: Build and test with Java CI, Maven, and JReleaser | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
release: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Setup the Java version | |
- name: Setup Java | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: 'zulu' | |
# Ensure Maven wrapper is executable | |
- name: Make Maven Wrapper executable | |
run: chmod +x ./mvnw | |
# Build and run tests | |
- name: Maven package | |
run: | | |
./mvnw -ntp -B package |