Skip to content

Commit 58860f0

Browse files
authored
Update GH workflows (#102)
Motivation: - need to release 0.9.x - make use of matrix Modification: - Make use of matrix feature - set target branches as ['trunk', '0.9.x'] - Add question template Result: - Prepared for the release of version 0.9.x - Added a new 'question' issue template for easier submission of questions - Successfully updated GitHub workflows to utilize matrix feature
1 parent 0d34088 commit 58860f0

File tree

8 files changed

+47
-89
lines changed

8 files changed

+47
-89
lines changed

.github/ISSUE_TEMPLATE/question.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Question
3+
about: Ask a question or seek clarification about the project.
4+
title: "[QUESTION] Your question title here"
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
## Summary
11+
<!-- Provide a brief summary of your question. -->
12+
13+
## Detailed description
14+
<!-- Describe your question in detail. Please be specific and provide examples if possible. -->
15+
16+
## Relevant context
17+
<!-- If applicable, provide any context that helps clarify your question (e.g., links to related issues, code snippets, screenshots). -->
18+
19+
## Your environment
20+
<!-- If your question relates to your specific environment or setup, please provide details here (e.g., operating system, library versions, etc.). -->
21+
22+
## Additional information
23+
<!-- If there's anything else that might help us answer your question, please provide it here. -->
24+
25+
## Checklist
26+
- [ ] I have searched the existing issues to make sure my question has not been asked before
27+
- [ ] I have provided all the necessary information and context to help answer my question
28+
- [ ] I have read the documentation and/or README for this project (if applicable)
File renamed without changes.

.github/workflows/deploy_snapshot.yml renamed to .github/workflows/cd-snapshot.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name: DEPLOY_SNAPSHOT
1616

1717
on:
1818
push:
19-
branches: [ "trunk", "0.9" ]
19+
branches: [ "trunk", "0.9.x" ]
2020

2121

2222
jobs:
@@ -53,8 +53,6 @@ jobs:
5353
5454
- name: Deploy Local Staging
5555
run: ./mvnw -B -ntp clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=/home/runner/local-staging -DskipRemoteStaging=true -DskipTests=true
56-
57-
5856

5957
- name: Deploy Local Staged Artifacts
6058
run: ./mvnw -B --file pom.xml org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=/home/runner/local-staging
Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1-
name: MySQL 8.0
1+
name: Integration Tests
22

3-
on: [ pull_request ]
3+
on:
4+
pull_request:
5+
branches: [ "trunk", "0.9.x" ]
46

57
jobs:
6-
build:
8+
integration-tests-pr:
79
runs-on: ubuntu-20.04
10+
strategy:
11+
matrix:
12+
mysql-version: [ 5.5, 5.6, 5.7, 8.0 ]
13+
name: Integration test with MySQL ${{ matrix.mysql-version }}
814
steps:
915
- uses: actions/checkout@v3
1016
- name: Set up Temurin 8
@@ -15,12 +21,11 @@ jobs:
1521
cache: maven
1622
- name: Shutdown the Default MySQL
1723
run: sudo service mysql stop
18-
- name: Set up MySQL 8.0
24+
- name: Set up MySQL ${{ matrix.mysql-version }}
1925
uses: asyncer-io/mysql-action@trunk
2026
with:
21-
collation server: utf8mb4_0900_ai_ci
22-
mysql version: 8.0
27+
mysql version: ${{ matrix.mysql-version }}
2328
mysql database: r2dbc
2429
mysql root password: r2dbc-password!@
25-
- name: Integration test with MySQL 8.0
26-
run: ./mvnw -B verify -Dmaven.javadoc.skip=true -Dmaven.surefire.skip=true -Dtest.mysql.password=r2dbc-password!@ -Dtest.mysql.version=8.0 -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN
30+
- name: Integration test with MySQL ${{ matrix.mysql-version }}
31+
run: ./mvnw -B verify -Dmaven.javadoc.skip=true -Dmaven.surefire.skip=true -Dtest.mysql.password=r2dbc-password!@ -Dtest.mysql.version=${{ matrix.mysql-version }} -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN

.github/workflows/unit-tests.yml renamed to .github/workflows/ci-unit-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: Unit tests
22

3-
on: [ pull_request ]
3+
on:
4+
pull_request:
5+
branches: [ "trunk", "0.9.x" ]
46

57
jobs:
68
unit-tests-pr:
79
runs-on: ubuntu-20.04
810
strategy:
9-
matrix:
10-
java-version: [8, 11, 17]
11+
matrix:
12+
java-version: [ 8, 11, 17 ]
1113
name: linux-java-${{ matrix.java-version }}
1214
steps:
1315
- uses: actions/checkout@v3

.github/workflows/mysql5-5.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/mysql5-6.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/mysql5-7.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)