Skip to content

Commit e50b077

Browse files
committed
Update CI file to work on 4.x branch and rename to scope the results to ci-4.x file (cont)
1 parent 8567a2f commit e50b077

File tree

1 file changed

+58
-0
lines changed

1 file changed

+58
-0
lines changed

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

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI (4.x)
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- '[0-9]+.[0-9x]+'
7+
pull_request:
8+
branches:
9+
- master
10+
- '[0-9]+.[0-9x]+'
11+
schedule:
12+
- cron: '0 4 * * *'
13+
jobs:
14+
Test:
15+
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 }}
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
- name: Install JDK
32+
uses: actions/setup-java@v2
33+
with:
34+
java-version: ${{ matrix.jdk }}
35+
distribution: temurin
36+
- name: Run tests
37+
run: mvn -s .github/maven-ci-settings.xml -q clean verify -B -DskipDefault -P ${{ matrix.profile }}
38+
Deploy:
39+
name: Deploy to OSSRH
40+
if: ${{ github.repository_owner == 'eclipse-vertx' && (github.event_name == 'push' || github.event_name == 'schedule') }}
41+
needs: Test
42+
runs-on: ubuntu-latest
43+
env:
44+
VERTX_NEXUS_USERNAME: ${{ secrets.VERTX_NEXUS_USERNAME }}
45+
VERTX_NEXUS_PASSWORD: ${{ secrets.VERTX_NEXUS_PASSWORD }}
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v2
49+
- name: Install JDK
50+
uses: actions/setup-java@v2
51+
with:
52+
java-version: 11
53+
distribution: temurin
54+
- name: Get project version
55+
run: echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:evaluate -Dexpression=project.version -B | grep -v '\[')" >> $GITHUB_ENV
56+
- name: Maven deploy
57+
if: ${{ endsWith(env.PROJECT_VERSION, '-SNAPSHOT') }}
58+
run: mvn deploy -s .github/maven-cd-settings.xml -DskipTests -B

0 commit comments

Comments
 (0)