File tree 3 files changed +83
-42
lines changed
3 files changed +83
-42
lines changed Original file line number Diff line number Diff line change
1
+ name : vertx-rabbitmq-client (5.x)
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - main
9
+ schedule :
10
+ - cron : ' 0 5 * * *'
11
+ jobs :
12
+ CI :
13
+ strategy :
14
+ matrix :
15
+ include :
16
+ - os : ubuntu-latest
17
+ jdk : 11
18
+ - os : ubuntu-latest
19
+ jdk : 17
20
+ uses : ./.github/workflows/ci.yml
21
+ with :
22
+ branch : ${{ github.event.pull_request.head.sha || github.ref_name }}
23
+ jdk : ${{ matrix.jdk }}
24
+ os : ${{ matrix.os }}
25
+ secrets : inherit
26
+ Deploy :
27
+ if : ${{ github.repository_owner == 'eclipse-vertx' && (github.event_name == 'push' || github.event_name == 'schedule') }}
28
+ needs : CI
29
+ uses : ./.github/workflows/deploy.yml
30
+ with :
31
+ branch : ${{ github.event.pull_request.head.sha || github.ref_name }}
32
+ jdk : 11
33
+ secrets : inherit
Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on :
3
- push :
4
- branches :
5
- - main
6
- - initial-work
7
- - ' [0-9]+.[0-9]+'
8
- pull_request :
9
- branches :
10
- - main
11
- - initial-work
12
- - ' [0-9]+.[0-9]+'
13
- schedule :
14
- - cron : ' 0 4 * * *'
3
+ workflow_call :
4
+ inputs :
5
+ branch :
6
+ required : true
7
+ type : string
8
+ jdk :
9
+ default : 8
10
+ type : string
11
+ os :
12
+ default : ubuntu-latest
13
+ type : string
15
14
jobs :
16
15
Test :
17
16
name : Run tests
18
- strategy :
19
- matrix :
20
- os : [ubuntu-latest]
21
- jdk : [8, 11, 17]
22
- runs-on : ${{ matrix.os }}
17
+ runs-on : ${{ inputs.os }}
23
18
steps :
24
19
- name : Checkout
25
- uses : actions/checkout@v3
26
- - name : Install JDK
27
- uses : actions/setup-java@v3
20
+ uses : actions/checkout@v2
28
21
with :
29
- java-version : ${{ matrix.jdk }}
30
- distribution : temurin
31
- - name : Run tests
32
- run : mvn -q clean verify -B
33
- Deploy :
34
- name : Deploy to OSSRH
35
- if : ${{ github.repository_owner == 'eclipse-vertx' && (github.ref != 'refs/heads/initial-work') && (github.event_name == 'push' || github.event_name == 'schedule') }}
36
- needs : Test
37
- runs-on : ubuntu-latest
38
- env :
39
- VERTX_NEXUS_USERNAME : ${{ secrets.VERTX_NEXUS_USERNAME }}
40
- VERTX_NEXUS_PASSWORD : ${{ secrets.VERTX_NEXUS_PASSWORD }}
41
- steps :
42
- - name : Checkout
43
- uses : actions/checkout@v3
22
+ ref : ${{ inputs.branch }}
44
23
- name : Install JDK
45
- uses : actions/setup-java@v3
24
+ uses : actions/setup-java@v2
46
25
with :
47
- java-version : 8
26
+ java-version : ${{ inputs.jdk }}
48
27
distribution : temurin
49
- - name : Get project version
50
- run : echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')" >> $GITHUB_ENV
51
- - name : Maven deploy
52
- if : ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
53
- run : mvn deploy -s .travis.maven.settings.xml -DskipTests -B
28
+ - name : Run tests
29
+ run : mvn -s .github/maven-ci-settings.xml -q clean verify -B
Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+ on :
3
+ workflow_call :
4
+ inputs :
5
+ branch :
6
+ required : true
7
+ type : string
8
+ jdk :
9
+ default : 8
10
+ type : string
11
+ jobs :
12
+ Deploy :
13
+ name : Deploy to OSSRH
14
+ runs-on : ubuntu-latest
15
+ env :
16
+ VERTX_NEXUS_USERNAME : ${{ secrets.VERTX_NEXUS_USERNAME }}
17
+ VERTX_NEXUS_PASSWORD : ${{ secrets.VERTX_NEXUS_PASSWORD }}
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v2
21
+ with :
22
+ ref : ${{ inputs.branch }}
23
+ - name : Install JDK
24
+ uses : actions/setup-java@v2
25
+ with :
26
+ java-version : ${{ inputs.jdk }}
27
+ distribution : temurin
28
+ - name : Get project version
29
+ run : echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')" >> $GITHUB_ENV
30
+ - name : Maven deploy
31
+ if : ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
32
+ run : mvn deploy -s .github/maven-cd-settings.xml -DskipTests -B
You can’t perform that action at this time.
0 commit comments