-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SWI-5869 Update SDK Based on Recent Spec Changes (#149)
* Generate SDK with OpenAPI Generator Version 7.6.0 * update test workflows * skip tests * move tests * fix test * no smoke tests for now * build? * disable smoke * pls build * update workflows and gitignore * fix unit test package * first unit tests * test fixes * regenerate tests * fixes to smoke tests * write a bunch of unit tests * update workflows * fix CallCleanup * update types and lots more unit tests * remove unused import * final unit tests * update bxml tests * fix smoke tests * update transcriptions tests * bring back smoke tests * remove matrix from smoke tests * use java 21 for tests * calls api unit tests * add other api unit tests * test formatting * switch from ArrayList to List * run prism in unit test wf * try a sleep because windows 19 is trash * use bash * SWI-5869 BXML Library Updates (#151) * move @params to avoid warnings hopefully * bxml formatting changes * add wf dispatch to test wf * not only on main * fix javadoc warnings * formatting * on main only --------- Co-authored-by: DX-Bandwidth <dx@bandwidth.com> Co-authored-by: ckoegel <ckoegel1006@gmail.com> Co-authored-by: Cameron Koegel <53310569+ckoegel@users.noreply.github.com>
- Loading branch information
1 parent
c53212a
commit 86964de
Showing
205 changed files
with
5,176 additions
and
3,687 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Test PR | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
env: | ||
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }} | ||
BW_PASSWORD: ${{ secrets.BW_PASSWORD }} | ||
BW_USERNAME: ${{ secrets.BW_USERNAME }} | ||
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }} | ||
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }} | ||
BW_NUMBER: ${{ secrets.BW_NUMBER }} | ||
USER_NUMBER: ${{ secrets.USER_NUMBER }} | ||
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }} | ||
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }} | ||
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }} | ||
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }} | ||
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }} | ||
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }} | ||
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }} | ||
ATT_NUMBER: ${{ secrets.ATT_NUMBER }} | ||
T_MOBILE_NUMBER: ${{ secrets.T_MOBILE_NUMBER }} | ||
VZW_NUMBER: ${{ secrets.VZW_NUMBER }} | ||
|
||
jobs: | ||
test: | ||
name: Test PR | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-2022, windows-2019, ubuntu-20.04, ubuntu-22.04] | ||
java-version: ["11", "17", "21"] | ||
distribution: ["zulu", "temurin"] | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: ${{ matrix.distribution }} | ||
java-version: ${{ matrix.java-version }} | ||
|
||
- name: Build Package and Test | ||
env: | ||
JAVA_VERSION: ${{ matrix.java-version }} | ||
RUNNER_OS: ${{ matrix.os }} | ||
OPERATING_SYSTEM: ${{ matrix.os }} | ||
DISTRIBUTION: ${{ matrix.distribution }} | ||
run: | | ||
mvn -B package --file pom.xml -DskipTests | ||
npm install -g @stoplight/prism-cli | ||
prism mock ./bandwidth.yml & (sleep 3; mvn test -Punit-tests) | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Smoke Test | ||
|
||
on: | ||
schedule: | ||
- cron: "0 4 * * *" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "src/test/java/com/bandwidth/sdk/smoke/*" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
BW_ACCOUNT_ID: ${{ secrets.BW_ACCOUNT_ID }} | ||
BW_PASSWORD: ${{ secrets.BW_PASSWORD }} | ||
BW_USERNAME: ${{ secrets.BW_USERNAME }} | ||
BW_VOICE_APPLICATION_ID: ${{ secrets.BW_VOICE_APPLICATION_ID }} | ||
BW_MESSAGING_APPLICATION_ID: ${{ secrets.BW_MESSAGING_APPLICATION_ID }} | ||
BW_NUMBER: ${{ secrets.BW_NUMBER }} | ||
USER_NUMBER: ${{ secrets.USER_NUMBER }} | ||
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }} | ||
BW_USERNAME_FORBIDDEN: ${{ secrets.BW_USERNAME_FORBIDDEN }} | ||
BW_PASSWORD_FORBIDDEN: ${{ secrets.BW_PASSWORD_FORBIDDEN }} | ||
MANTECA_IDLE_NUMBER: ${{ secrets.MANTECA_IDLE_NUMBER }} | ||
MANTECA_ACTIVE_NUMBER: ${{ secrets.MANTECA_ACTIVE_NUMBER }} | ||
MANTECA_APPLICATION_ID: ${{ secrets.MANTECA_APPLICATION_ID }} | ||
MANTECA_BASE_URL: ${{ secrets.MANTECA_BASE_URL }} | ||
ATT_NUMBER: ${{ secrets.ATT_NUMBER }} | ||
T_MOBILE_NUMBER: ${{ secrets.T_MOBILE_NUMBER }} | ||
VZW_NUMBER: ${{ secrets.VZW_NUMBER }} | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 21 | ||
|
||
- name: Build Package and Test | ||
env: | ||
JAVA_VERSION: 21 | ||
RUNNER_OS: ubuntu-latest | ||
OPERATING_SYSTEM: ubuntu-latest | ||
DISTRIBUTION: zulu | ||
run: | | ||
mvn -B package --file pom.xml -DskipTests | ||
mvn test -Psmoke-tests | ||
shell: bash | ||
|
||
notify_for_failures: | ||
name: Notify for Failures | ||
needs: [test] | ||
if: failure() | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Notify Slack of Failures | ||
uses: Bandwidth/build-notify-slack-action@v2.0.0 | ||
with: | ||
job-status: failure | ||
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
slack-channel: ${{ secrets.SLACK_CHANNEL }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ build | |
|
||
.DS_Store | ||
.idea | ||
.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.