[major] Migrate to java 17 (#37)

This commit is contained in:
vitaxa 2022-11-15 19:04:54 +03:00 committed by GitHub
parent 6d84c5a32a
commit 72996743be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 55 additions and 16 deletions

View File

@ -13,6 +13,16 @@ on:
required: false
default: "adopt"
type: string
mvn-options:
description: 'Additional maven options'
required: false
default: ""
type: string
mvn-args:
description: 'Additional maven args'
required: false
default: ""
type: string
jobs:
build:
@ -29,7 +39,11 @@ jobs:
cache: 'maven'
- name: Maven Compile
run: mvn --batch-mode clean compile
run: |
mvn \
--no-transfer-progress \
--batch-mode ${{ inputs.mvn-options }} \
clean compile ${{ inputs.mvn-args }}
test-coverage:
runs-on: ubuntu-20.04
@ -45,7 +59,11 @@ jobs:
cache: 'maven'
- name: Maven Verify
run: mvn --batch-mode clean verify
run: |
mvn \
--no-transfer-progress \
--batch-mode ${{ inputs.mvn-options }} \
clean verify ${{ inputs.mvn-args }}
- name: Upload code coverage
uses: codecov/codecov-action@v3

View File

@ -13,6 +13,11 @@ on:
required: false
default: "adopt"
type: string
mvn-args:
description: 'Additional maven params'
required: false
default: ""
type: string
secrets:
server-username:
required: true
@ -35,10 +40,13 @@ jobs:
- name: Deploy package
uses: valitydev/action-deploy-jdk-package@v1.0.14
with:
jdk-version: ${{ inputs.java-version }}
jdk-distribution: ${{ inputs.java-distribution }}
server-username: ${{ secrets.server-username }}
server-password: ${{ secrets.server-password }}
deploy-secret-key: ${{ secrets.deploy-secret-key }}
deploy-secret-key-password: ${{ secrets.deploy-secret-key-password }}
maven-args: ${{ inputs.mvn-args }}
- name: Mattermost Notification
if: always()

View File

@ -6,12 +6,12 @@ on:
java-version:
description: 'Java version'
required: false
default: "15"
default: "17"
type: string
java-distribution:
description: 'Java distribution'
required: false
default: "adopt"
default: "temurin"
type: string
mvn-args:
description: 'Additional maven args'

View File

@ -6,12 +6,12 @@ on:
java-version:
description: 'Java version'
required: false
default: "15"
default: "17"
type: string
java-distribution:
description: 'Java distribution'
required: false
default: "adopt"
default: "temurin"
type: string
mvn-args:
description: 'Additional maven args'
@ -44,7 +44,7 @@ jobs:
mvn-args: ${{ inputs.mvn-args }}
- name: Deploy image
uses: valitydev/action-deploy-docker@v2.0.3
uses: valitydev/action-deploy-docker@v2.0.5
with:
registry-username: ${{ github.actor }}
registry-access-token: ${{ secrets.github-token }}

View File

@ -11,12 +11,12 @@ on:
java-version:
description: 'Java version'
required: false
default: "15"
default: "17"
type: string
java-distribution:
description: 'Java distribution'
required: false
default: "adopt"
default: "temurin"
type: string
jobs:
@ -33,7 +33,7 @@ jobs:
distribution: ${{ inputs.java-distribution }}
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
cache: npm

View File

@ -37,7 +37,7 @@ jobs:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}
cache: npm
@ -85,7 +85,7 @@ jobs:
mvn versions:set versions:commit -DnewVersion="1.${{ steps.commit_info.outputs.COMMIT_NUMBER }}-${{ steps.commit_info.outputs.SHA_7 }}-server"
- name: Deploy server package
uses: valitydev/action-deploy-jdk-package@v1.0.13
uses: valitydev/action-deploy-jdk-package@v1.0.14
with:
server-username: ${{ secrets.server-username }}
server-password: ${{ secrets.server-password }}
@ -119,7 +119,7 @@ jobs:
mvn --batch-mode versions:set versions:commit -DnewVersion="1.${{ steps.commit_info.outputs.COMMIT_NUMBER }}-${{ steps.commit_info.outputs.SHA_7 }}-client"
- name: Deploy client package
uses: valitydev/action-deploy-jdk-package@v1.0.13
uses: valitydev/action-deploy-jdk-package@v1.0.14
with:
server-username: ${{ secrets.server-username }}
server-password: ${{ secrets.server-password }}

View File

@ -6,12 +6,12 @@ on:
java-version:
description: 'Java version'
required: false
default: "15"
default: "17"
type: string
java-distribution:
description: 'Java distribution'
required: false
default: "adopt"
default: "temurin"
type: string
jobs:
@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Install thrift
uses: valitydev/action-setup-thrift@v0.0.5
uses: valitydev/action-setup-thrift@v1.0.0
- name: Checkout Repo
uses: actions/checkout@v3
with:

View File

@ -2,6 +2,17 @@ name: Maven Deploy Artifact
on:
workflow_call:
inputs:
java-version:
description: 'Java version'
required: false
default: "17"
type: string
java-distribution:
description: 'Java distribution'
required: false
default: "temurin"
type: string
secrets:
server-username:
required: true
@ -32,6 +43,8 @@ jobs:
- name: Deploy package
uses: valitydev/action-deploy-jdk-package@v1.0.14
with:
jdk-version: ${{ inputs.java-version }}
java-distribution: ${{ inputs.java-distribution }}
server-username: ${{ secrets.server-username }}
server-password: ${{ secrets.server-password }}
deploy-secret-key: ${{ secrets.deploy-secret-key }}