Skip to content

Commit 62eb33a

Browse files
committed
DX-2231 Updated to Include Matrix Testing
1 parent f13cc36 commit 62eb33a

File tree

2 files changed

+24
-15
lines changed

2 files changed

+24
-15
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish package to the Maven Central Repository
1+
name: Deploy
22
on:
33
release:
44
types:
@@ -30,10 +30,10 @@ jobs:
3030
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
3131
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3232

33-
- name: Get Maven project version
33+
- name: Get Maven Project Version
3434
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
3535

36-
- name: Set Maven project version
36+
- name: Set Maven Project Version
3737
run: mvn versions:set -DnewVersion=$RELEASE_VERSION
3838

3939
- name: Publish to Apache Maven Central
@@ -43,7 +43,7 @@ jobs:
4343
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
4444
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
4545

46-
- name: Slackbot notification
46+
- name: Notify Slack
4747
uses: Bandwidth/[email protected]
4848
if: always()
4949
with:
Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
name: Build package using Maven
1+
name: Test
22
on:
3-
pull_request:
43
schedule:
5-
- cron: '0 4 * * *'
4+
- cron: "0 4 * * *"
5+
pull_request:
6+
workflow_dispatch:
7+
68
jobs:
7-
build:
8-
runs-on: ubuntu-latest
9+
test:
10+
name: Test
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [windows-2016, windows-2019, ubuntu-18.04, ubuntu-20.04]
15+
java-version: ['7', '8', '11', '17']
916
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up JDK 11
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Set up JDK
1221
uses: actions/setup-java@v2
1322
with:
1423
distribution: 'adopt'
15-
java-version: '11'
24+
java-version: ${{ matrix.java-version }}
1625

17-
- name: Build with Maven
18-
run: mvn -B package --file pom.xml
26+
- name: Test
1927
env:
2028
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
2129
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
@@ -25,8 +33,9 @@ jobs:
2533
BW_NUMBER: ${{ secrets.BW_NUMBER }}
2634
USER_NUMBER: ${{ secrets.USER_NUMBER }}
2735
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
36+
run: mvn -B package --file pom.xml
2837

29-
- name: Slackbot notification
38+
- name: Notify Slack of Failures
3039
uses: Bandwidth/[email protected]
3140
if: failure() && !github.event.pull_request.draft
3241
with:

0 commit comments

Comments
 (0)