Skip to content

Commit f053e9d

Browse files
Merge branch 'main' of https://github.com/Bandwidth/java-sdk into DX-2191-Fill-out-SDK-tests
� Conflicts: � src/test/java/com/bandwidth/ApiTest.java
2 parents a852ba3 + f1ae7d1 commit f053e9d

File tree

3 files changed

+34
-16
lines changed

3 files changed

+34
-16
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: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
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: ['8', '11']
16+
distribution: ['zulu', 'temurin']
917
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up JDK 11
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Set up JDK
1222
uses: actions/setup-java@v2
1323
with:
14-
distribution: 'adopt'
15-
java-version: '11'
24+
distribution: ${{ matrix.distribution }}
25+
java-version: ${{ matrix.java-version }}
1626

17-
- name: Build with Maven
18-
run: mvn -B package --file pom.xml
27+
- name: Test
1928
env:
2029
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }}
2130
BW_PASSWORD: ${{ secrets.BW_PASSWORD }}
@@ -25,8 +34,9 @@ jobs:
2534
BW_NUMBER: ${{ secrets.BW_NUMBER }}
2635
USER_NUMBER: ${{ secrets.USER_NUMBER }}
2736
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
37+
run: mvn -B package --file pom.xml
2838

29-
- name: Slackbot notification
39+
- name: Notify Slack of Failures
3040
uses: Bandwidth/[email protected]
3141
if: failure() && !github.event.pull_request.draft
3242
with:

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Bandwidth Java SDK
22

3+
[![Test](https://github.com/Bandwidth/java-sdk/actions/workflows/test.yaml/badge.svg)](https://github.com/Bandwidth/java-sdk/actions/workflows/test.yaml)
4+
5+
| **OS** | **Java** | **Distribution** |
6+
|:---:|:---:|:---:|
7+
| Windows 2016 | 8, 11 | Zulu OpenJDK, Eclipse Temurin |
8+
| Windows 2019 | 8, 11 | Zulu OpenJDK, Eclipse Temurin |
9+
| Ubuntu 18.04 | 8, 11 | Zulu OpenJDK, Eclipse Temurin |
10+
| Ubuntu 20.04 | 8, 11 | Zulu OpenJDK, Eclipse Temurin |
311
## Getting Started
412

513
### Installation

0 commit comments

Comments
 (0)