-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix * ci: fix
- Loading branch information
Showing
19 changed files
with
228 additions
and
112 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,106 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support documentation. | ||
# This workflow will download a prebuilt Java version, install dependencies and run integration tests | ||
|
||
name: Run Integration Tests | ||
|
||
on: | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
integration_test: | ||
name: Build and Run Integration Tests on Java ${{ matrix.java-version }} and ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
java-version: ['8'] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: 'adopt' | ||
|
||
- name: Execute Java integration tests | ||
# continue-on-error: true | ||
env: | ||
MVN_ARGS: '-B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' | ||
NATURAL_LANGUAGE_CLASSIFIER_URL: "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com" | ||
NATURAL_LANGUAGE_CLASSIFIER_APIKEY: ${{ secrets.NLC_APIKEY }} | ||
NATURAL_LANGUAGE_CLASSIFIER_ID: ${{ secrets.NLC_CLASSIFIER_ID }} | ||
LANGUAGE_TRANSLATOR_APIKEY: ${{ secrets.LT_APIKEY }} | ||
LANGUAGE_TRANSLATOR_URL: "https://api.us-south.language-translator.watson.cloud.ibm.com" | ||
NATURAL_LANGUAGE_UNDERSTANDING_APIKEY: ${{ secrets.NLU_APIKEY }} | ||
NATURAL_LANGUAGE_UNDERSTANDING_URL: "https://api.us-south.natural-language-understanding.watson.cloud.ibm.com" | ||
PERSONALITY_INSIGHTS_APIKEY: ${{ secrets.PI_APIKEY }} | ||
PERSONALITY_INSIGHTS_URL: "https://api.us-south.personality-insights.watson.cloud.ibm.com" | ||
TONE_ANALYZER_APIKEY: ${{ secrets.TA_APIKEY }} | ||
TONE_ANALYZER_URL: "https://api.us-south.tone-analyzer.watson.cloud.ibm.com" | ||
SPEECH_TO_TEXT_APIKEY: ${{ secrets.STT_APIKEY }} | ||
SPEECH_TO_TEXT_URL: "https://api.us-south.speech-to-text.watson.cloud.ibm.com" | ||
SPEECH_TO_TEXT_CUSTOM_ID: ${{ secrets.STT_APIKEY_CUSTOM_ID }} | ||
SPEECH_TO_TEXT_ACOUSTIC_CUSTOM_ID: ${{ secrets.STT_APIKEY_ACOUSTIC_CUSTOM_ID }} | ||
TEXT_TO_SPEECH_APIKEY: ${{ secrets.TTS_APIKEY }} | ||
TEXT_TO_SPEECH_URL: "https://api.us-south.text-to-speech.watson.cloud.ibm.com" | ||
VISUAL_RECOGNITION_APIKEY: ${{ secrets.VR_APIKEY }} | ||
VISUAL_RECOGNITION_COLLECTION_ID: ${{ secrets.VR_COLLECTION_ID }} | ||
VISUAL_RECOGNITION_URL: "https://api.us-south.visual-recognition.watson.cloud.ibm.com" | ||
COMPARE_COMPLY_APIKEY: ${{ secrets.CC_APIKEY }} | ||
COMPARE_COMPLY_FEEDBACK_ID: ${{ secrets.CC_FEEDBACK_ID }} | ||
COMPARE_COMPLY_URL: "https://api.us-south.compare-comply.watson.cloud.ibm.com" | ||
ASSISTANT_APIKEY: ${{ secrets.WA_APIKEY }} | ||
ASSISTANT_WORKSPACE_ID: ${{ secrets.WA_WORKSPACE_ID }} | ||
ASSISTANT_ASSISTANT_ID: ${{ secrets.WA_ASSISTANT_ID }} | ||
ASSISTANT_URL: "https://api.us-south.assistant.watson.cloud.ibm.com" | ||
DISCOVERY_APIKEY: ${{ secrets.D1_APIKEY }} | ||
DISCOVERY_ENVIRONMENT_ID: ${{ secrets.D1_ENVIRONMENT_ID }} | ||
DISCOVERY_COLLECTION_ID: ${{ secrets.D1_COLLECTION_ID }} | ||
DISCOVERY_URL: "https://api.us-south.discovery.watson.cloud.ibm.com" | ||
DISCOVERY_V2_APIKEY: ${{ secrets.D2_APIKEY }} | ||
DISCOVERY_V2_PROJECT_ID: ${{ secrets.D2_PROJECT_ID }} | ||
DISCOVERY_V2_COLLECTION_ID: ${{ secrets.D2_COLLECTION_ID }} | ||
DISCOVERY_V2_URL: "https://api.us-south.discovery.watson.cloud.ibm.com" | ||
run: | | ||
mvn test -Dtest=v1/AssistantServiceIT -DfailIfNoTests=false -pl assistant,common $MVN_ARGS | ||
mvn test -Dtest=v2/AssistantServiceIT -DfailIfNoTests=false -pl assistant,common $MVN_ARGS | ||
mvn test -Dtest=CompareComplyServiceIT -DfailIfNoTests=false -pl compare-comply,common $MVN_ARGS | ||
mvn test -Dtest=v1/DiscoveryServiceIT -DfailIfNoTests=false -pl discovery,common $MVN_ARGS | ||
mvn test -Dtest=v2/DiscoveryIT -DfailIfNoTests=false -pl discovery,common $MVN_ARGS | ||
mvn test -Dtest=LanguageTranslatorIT -DfailIfNoTests=false -pl language-translator,common $MVN_ARGS | ||
mvn test -Dtest=NaturalLanguageClassifierIT -DfailIfNoTests=false -pl natural-language-classifier,common $MVN_ARGS | ||
mvn test -Dtest=NaturalLanguageUnderstandingIT -DfailIfNoTests=false -pl natural-language-understanding,common $MVN_ARGS | ||
mvn test -Dtest=PersonalityInsightsIT -DfailIfNoTests=false -pl personality-insights,common $MVN_ARGS | ||
mvn test -Dtest=SpeechToTextIT -DfailIfNoTests=false -pl speech-to-text,common $MVN_ARGS | ||
mvn test -Dtest=TextToSpeechIT -DfailIfNoTests=false -pl text-to-speech,common $MVN_ARGS | ||
mvn test -Dtest=CustomizationsIT -DfailIfNoTests=false -pl text-to-speech,common $MVN_ARGS | ||
mvn test -Dtest=ToneAnalyzerIT -DfailIfNoTests=false -pl tone-analyzer,common $MVN_ARGS | ||
mvn test -Dtest=v3/VisualRecognitionIT -DfailIfNoTests=false -pl visual-recognition,common $MVN_ARGS | ||
mvn test -Dtest=v4/VisualRecognitionIT -DfailIfNoTests=false -pl visual-recognition,common $MVN_ARGS | ||
# Do not notify on success. We will leave the code here just in case we decide to switch gears | ||
- name: Notify slack on success | ||
if: false # success() | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} | ||
uses: voxmedia/github-action-slack-notify-build@v1 | ||
with: | ||
channel: watson-e2e-tests | ||
status: SUCCESS | ||
color: good | ||
|
||
- name: Notify slack on failure | ||
if: false # failure() | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} | ||
uses: voxmedia/github-action-slack-notify-build@v1 | ||
with: | ||
channel: watson-e2e-tests | ||
status: FAILED | ||
color: danger |
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
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.