resolved or less controversial updates (#1364) #1323
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
name: Java CI | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
# NEATO ! CACHE !!!! | |
cache: 'maven' | |
- name: Dependency Test | |
run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q | |
- name: Build with Maven | |
run: mvn --batch-mode -Dtest=!**/OpenCV* test -q | |
- name: Get next version | |
uses: reecetech/version-increment@2023.9.3 | |
id: version | |
with: | |
scheme: semver | |
increment: patch | |
- name: Package with Maven | |
run: "mvn package -DskipTests -Dversion=${{ steps.version.outputs.version }} -q" | |
# - name: Fake Build | |
# run: | | |
# mkdir -p target | |
# echo ${{ github.sha }} > ./target/myrobotlab.zip | |
- name: Pre Release | |
if: github.ref != 'refs/heads/develop' | |
id: prerelease | |
uses: softprops/action-gh-release@v1 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
prerelease: true | |
files: ./target/myrobotlab.zip | |
name: "Pre ${{ steps.version.outputs.version }} Nixie" | |
tag_name: ${{ steps.version.outputs.version }} | |
generate_release_notes: true | |
body_path: ./release-template.md | |
- name: Release | |
if: github.ref == 'refs/heads/develop' | |
id: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
files: ./target/myrobotlab.zip | |
name: "${{ steps.version.outputs.version }} Nixie" | |
tag_name: ${{ steps.version.outputs.version }} | |
generate_release_notes: true | |
body_path: ./release-template.md | |