mirror of
https://github.com/valitydev/java-workflow.git
synced 2024-11-06 01:25:18 +00:00
[major] Migrate to java 17 (#37)
This commit is contained in:
parent
6d84c5a32a
commit
72996743be
22
.github/workflows/maven-library-build.yml
vendored
22
.github/workflows/maven-library-build.yml
vendored
@ -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
|
||||
|
8
.github/workflows/maven-library-deploy.yml
vendored
8
.github/workflows/maven-library-deploy.yml
vendored
@ -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()
|
||||
|
4
.github/workflows/maven-service-build.yml
vendored
4
.github/workflows/maven-service-build.yml
vendored
@ -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'
|
||||
|
6
.github/workflows/maven-service-deploy.yml
vendored
6
.github/workflows/maven-service-deploy.yml
vendored
@ -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 }}
|
||||
|
6
.github/workflows/maven-swag-build.yml
vendored
6
.github/workflows/maven-swag-build.yml
vendored
@ -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
|
||||
|
6
.github/workflows/maven-swag-deploy.yml
vendored
6
.github/workflows/maven-swag-deploy.yml
vendored
@ -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 }}
|
||||
|
6
.github/workflows/maven-thrift-build.yml
vendored
6
.github/workflows/maven-thrift-build.yml
vendored
@ -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:
|
||||
|
13
.github/workflows/maven-thrift-deploy.yml
vendored
13
.github/workflows/maven-thrift-deploy.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user