Skip to content

Commit e0a0911

Browse files
committed
Update CI to nightly builds
1 parent a85a002 commit e0a0911

3 files changed

Lines changed: 130 additions & 26 deletions

File tree

.github/workflows/ci-4.x.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CI (4.x)
2+
on:
3+
schedule:
4+
- cron: '0 4 * * *'
5+
jobs:
6+
CI:
7+
strategy:
8+
matrix:
9+
include:
10+
- os: ubuntu-latest
11+
jdk: 8
12+
profile: 'PostgreSQL-9'
13+
- os: ubuntu-latest
14+
jdk: 8
15+
profile: 'PostgreSQL-10'
16+
- os: ubuntu-latest
17+
jdk: 8
18+
profile: 'PostgreSQL-11'
19+
- os: ubuntu-latest
20+
jdk: 8
21+
profile: 'MySQL-8.0'
22+
- os: ubuntu-latest
23+
jdk: 8
24+
profile: 'MySQL-5.6'
25+
- os: ubuntu-latest
26+
jdk: 8
27+
profile: 'MySQL-5.7'
28+
- os: ubuntu-latest
29+
jdk: 8
30+
profile: 'MariaDB-10.4'
31+
- os: ubuntu-latest
32+
jdk: 8
33+
profile: 'MSSQL-2017-latest'
34+
- os: ubuntu-latest
35+
jdk: 8
36+
profile: 'MSSQL-2019-latest'
37+
- os: ubuntu-latest
38+
jdk: 8
39+
profile: 'DB2-11.5'
40+
- os: ubuntu-latest
41+
jdk: 8
42+
profile: 'Oracle-21'
43+
- os: ubuntu-latest
44+
jdk: 8
45+
profile: 'SQL-templates'
46+
- os: ubuntu-latest
47+
jdk: 17
48+
profile: 'PostgreSQL-11'
49+
- os: ubuntu-latest
50+
jdk: 17
51+
profile: 'MySQL-5.7'
52+
- os: ubuntu-latest
53+
jdk: 17
54+
profile: 'MySQL-5.7'
55+
- os: ubuntu-latest
56+
jdk: 17
57+
profile: 'MSSQL-2019-latest'
58+
- os: ubuntu-latest
59+
jdk: 17
60+
profile: 'Oracle-21'
61+
uses: ./.github/workflows/ci.yml
62+
with:
63+
branch: 4.x
64+
jdk: ${{ matrix.jdk }}
65+
os: ${{ matrix.os }}
66+
profile: ${{ matrix.profile }}
67+
deploy: ${{ matrix.jdk == '8' && matrix.os == 'ubuntu-latest' }}
68+
secrets: inherit

.github/workflows/ci-5.x.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI (5.x)
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
schedule:
10+
- cron: '0 5 * * *'
11+
jobs:
12+
CI:
13+
strategy:
14+
matrix:
15+
include:
16+
- os: ubuntu-latest
17+
jdk: 8
18+
profile: ''
19+
- os: ubuntu-latest
20+
jdk: 8
21+
profile: '-PtestNativeTransport'
22+
- os: ubuntu-latest
23+
jdk: 8
24+
profile: '-PtestDomainSockets'
25+
- os: ubuntu-latest
26+
jdk: 17
27+
profile: ''
28+
- os: windows-latest
29+
jdk: 8
30+
profile: ''
31+
uses: ./.github/workflows/ci.yml
32+
with:
33+
branch: ${{ github.head_ref || github.ref_name }}
34+
jdk: ${{ matrix.jdk }}
35+
os: ${{ matrix.os }}
36+
profile: ${{ matrix.profile }}
37+
deploy: ${{ matrix.jdk == '8' && matrix.os == 'ubuntu-latest' }}
38+
secrets: inherit

.github/workflows/ci.yml

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,39 @@
11
name: CI
22
on:
3-
push:
4-
branches:
5-
- master
6-
- '[0-9]+.[0-9]+'
7-
pull_request:
8-
branches:
9-
- master
10-
- '[0-9]+.[0-9]+'
11-
schedule:
12-
- 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
14+
profile:
15+
type: string
16+
deploy:
17+
type: boolean
1318
jobs:
1419
Test:
1520
name: Run tests
16-
strategy:
17-
matrix:
18-
os: [ubuntu-latest]
19-
profile: [PostgreSQL-9,PostgreSQL-10,PostgreSQL-11,MySQL-8.0,MySQL-5.6,MySQL-5.7,MariaDB-10.4,MSSQL-2017-latest,MSSQL-2019-latest,DB2-11.5,Oracle-21,SQL-templates]
20-
jdk: [8, 17]
21-
exclude:
22-
- profile: Oracle-21
23-
jdk: 8
24-
- profile: DB2-11.5
25-
jdk: 17
26-
fail-fast: false
27-
runs-on: ${{ matrix.os }}
21+
runs-on: ${{ inputs.os }}
2822
steps:
2923
- name: Checkout
3024
uses: actions/checkout@v2
25+
with:
26+
ref: ${{ inputs.branch }}
3127
- name: Install JDK
3228
uses: actions/setup-java@v2
3329
with:
34-
java-version: ${{ matrix.jdk }}
30+
java-version: ${{ inputs.jdk }}
3531
distribution: temurin
3632
- name: Run tests
37-
run: mvn -s .github/maven-ci-settings.xml -q clean verify -B -DskipDefault -P ${{ matrix.profile }}
33+
run: mvn -s .github/maven-ci-settings.xml -q clean verify -B -DskipDefault -P ${{ inputs.profile }}
3834
Deploy:
3935
name: Deploy to OSSRH
40-
if: ${{ github.repository_owner == 'eclipse-vertx' && (github.event_name == 'push' || github.event_name == 'schedule') }}
36+
if: ${{ inputs.deploy && github.repository_owner == 'eclipse-vertx' && (github.event_name == 'push' || github.event_name == 'schedule') }}
4137
needs: Test
4238
runs-on: ubuntu-latest
4339
env:
@@ -46,10 +42,12 @@ jobs:
4642
steps:
4743
- name: Checkout
4844
uses: actions/checkout@v2
45+
with:
46+
ref: ${{ inputs.branch }}
4947
- name: Install JDK
5048
uses: actions/setup-java@v2
5149
with:
52-
java-version: 11
50+
java-version: 17
5351
distribution: temurin
5452
- name: Get project version
5553
run: echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')" >> $GITHUB_ENV

0 commit comments

Comments
 (0)