|
6 | 6 | name: Run Integration Tests
|
7 | 7 |
|
8 | 8 | on:
|
9 |
| - |
10 | 9 | # Allows you to run this workflow manually from the Actions tab
|
11 | 10 | workflow_dispatch:
|
12 | 11 |
|
13 | 12 | jobs:
|
14 | 13 | integration_test:
|
15 |
| - |
16 | 14 | name: Build and Run Integration Tests on Swift ${{ matrix.os }}
|
17 | 15 | runs-on: ${{ matrix.os }}
|
18 | 16 | strategy:
|
19 | 17 | matrix:
|
20 | 18 | os: [macos-latest]
|
21 | 19 |
|
22 | 20 | steps:
|
23 |
| - - uses: actions/checkout@v2 |
| 21 | + - uses: actions/checkout@v2 |
24 | 22 |
|
25 |
| - - uses: maxim-lobanov/setup-xcode@v1 |
26 |
| - with: |
27 |
| - xcode-version: '12.5' |
| 23 | + - uses: maxim-lobanov/setup-xcode@v1 |
| 24 | + with: |
| 25 | + xcode-version: "12.5" |
28 | 26 |
|
29 |
| - - name: Display versions |
30 |
| - run: | |
31 |
| - swift --version |
32 |
| - xcodebuild -version |
33 |
| - ls /Applications | grep Xcode |
| 27 | + - name: Display versions |
| 28 | + run: | |
| 29 | + swift --version |
| 30 | + xcodebuild -version |
| 31 | + ls /Applications | grep Xcode |
34 | 32 |
|
35 |
| - - name: Execute Swift integration tests |
36 |
| - # continue-on-error: true |
37 |
| - env: |
38 |
| - NATURAL_LANGUAGE_CLASSIFIER_APIKEY: ${{ secrets.NLC_APIKEY }} |
39 |
| - NATURAL_LANGUAGE_CLASSIFIER_URL: "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com" |
40 |
| - LANGUAGE_TRANSLATOR_APIKEY: ${{ secrets.LT_APIKEY }} |
41 |
| - LANGUAGE_TRANSLATOR_URL: "https://api.us-south.language-translator.watson.cloud.ibm.com" |
42 |
| - NATURAL_LANGUAGE_UNDERSTANDING_APIKEY: ${{ secrets.NLU_APIKEY }} |
43 |
| - NATURAL_LANGUAGE_UNDERSTANDING_URL: "https://api.us-south.natural-language-understanding.watson.cloud.ibm.com" |
44 |
| - TONE_ANALYZER_APIKEY: ${{ secrets.TA_APIKEY }} |
45 |
| - TONE_ANALYZER_URL: "https://api.us-south.tone-analyzer.watson.cloud.ibm.com" |
46 |
| - SPEECH_TO_TEXT_APIKEY: ${{ secrets.STT_APIKEY }} |
47 |
| - SPEECH_TO_TEXT_URL: "https://api.us-south.speech-to-text.watson.cloud.ibm.com" |
48 |
| - TEXT_TO_SPEECH_APIKEY: ${{ secrets.TTS_APIKEY }} |
49 |
| - TEXT_TO_SPEECH_URL: "https://api.us-south.text-to-speech.watson.cloud.ibm.com" |
50 |
| - ASSISTANT_APIKEY: ${{ secrets.WA_APIKEY }} |
51 |
| - ASSISTANT_WORKSPACE_ID: ${{ secrets.WA_WORKSPACE_ID }} |
52 |
| - ASSISTANT_ASSISTANT_ID: ${{ secrets.WA_ASSISTANT_ID }} |
53 |
| - ASSISTANT_URL: "https://api.us-south.assistant.watson.cloud.ibm.com" |
54 |
| - DISCOVERY_APIKEY: ${{ secrets.D1_APIKEY }} |
55 |
| - DISCOVERY_ENVIRONMENT_ID: ${{ secrets.D1_ENVIRONMENT_ID }} |
56 |
| - DISCOVERY_COLLECTION_ID: ${{ secrets.D1_COLLECTION_ID }} |
57 |
| - DISCOVERY_URL: "https://api.us-south.discovery.watson.cloud.ibm.com" |
58 |
| - DISCOVERY_V2_APIKEY: ${{ secrets.D2_APIKEY }} |
59 |
| - DISCOVERY_V2_PROJECT_ID: ${{ secrets.D2_PROJECT_ID }} |
60 |
| - DISCOVERY_V2_COLLECTION_ID: ${{ secrets.D2_COLLECTION_ID }} |
61 |
| - DISCOVERY_V2_URL: "https://api.us-south.discovery.watson.cloud.ibm.com" |
62 |
| - run: | |
63 |
| - cp Sources/SupportingFiles/WatsonCredentialsGHA.swift Sources/SupportingFiles/WatsonCredentials.swift |
64 |
| - echo -e "\n\033[0;35mCommand: Run AssistantV1 Integration tests" |
65 |
| - set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme AssistantV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "AssistantV1Tests/AssistantTests" | xcpretty |
66 |
| - echo -e "\n\033[0;35mCommand: Run AssistantV2 Integration tests" |
67 |
| - set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme AssistantV2 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
68 |
| - echo -e "\n\033[0;35mCommand: Run DiscoveryV1 Integration tests" |
69 |
| - set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme DiscoveryV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "DiscoveryV1Tests/DiscoveryTests" | xcpretty |
70 |
| - echo -e "\n\033[0;35mCommand: Run DiscoveryV2 Integration tests" |
71 |
| - set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme DiscoveryV2 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "DiscoveryV2Tests/DiscoveryV2Tests" | xcpretty |
72 |
| - echo -e "\n\033[0;35mCommand: Run LanguageTranslatorV3 Integration tests" |
73 |
| - set -o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme LanguageTranslatorV3 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
74 |
| - echo -e "\n\033[0;35mCommand: Run NaturalLanguageClassifierV1 Integration tests" |
75 |
| - set -o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme NaturalLanguageClassifierV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
76 |
| - echo -e "\n\033[0;35mCommand: Run NaturalLanguageUnderstandingV1 Integration tests" |
77 |
| - set -o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme NaturalLanguageUnderstandingV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
78 |
| - echo -e "\n\033[0;35mCommand: Run SpeechToTextV1 Integration tests" |
79 |
| - set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme SpeechToTextV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "SpeechToTextV1Tests/SpeechToTextTests" | xcpretty |
80 |
| - echo -e "\n\033[0;35mCommand: Run TextToSpeechV1 Integration tests" |
81 |
| - set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme TextToSpeechV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
82 |
| - echo -e "\n\033[0;35mCommand: Run ToneAnalyzerV3 Integration tests" |
83 |
| - set -o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme ToneAnalyzerV3 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
| 33 | + - name: Execute Swift integration tests |
| 34 | + # continue-on-error: true |
| 35 | + env: |
| 36 | + LANGUAGE_TRANSLATOR_APIKEY: ${{ secrets.LT_APIKEY }} |
| 37 | + LANGUAGE_TRANSLATOR_URL: "https://api.us-south.language-translator.watson.cloud.ibm.com" |
| 38 | + NATURAL_LANGUAGE_UNDERSTANDING_APIKEY: ${{ secrets.NLU_APIKEY }} |
| 39 | + NATURAL_LANGUAGE_UNDERSTANDING_URL: "https://api.us-south.natural-language-understanding.watson.cloud.ibm.com" |
| 40 | + SPEECH_TO_TEXT_APIKEY: ${{ secrets.STT_APIKEY }} |
| 41 | + SPEECH_TO_TEXT_URL: "https://api.us-south.speech-to-text.watson.cloud.ibm.com" |
| 42 | + TEXT_TO_SPEECH_APIKEY: ${{ secrets.TTS_APIKEY }} |
| 43 | + TEXT_TO_SPEECH_URL: "https://api.us-south.text-to-speech.watson.cloud.ibm.com" |
| 44 | + ASSISTANT_APIKEY: ${{ secrets.WA_APIKEY }} |
| 45 | + ASSISTANT_WORKSPACE_ID: ${{ secrets.WA_WORKSPACE_ID }} |
| 46 | + ASSISTANT_ASSISTANT_ID: ${{ secrets.WA_ASSISTANT_ID }} |
| 47 | + ASSISTANT_URL: "https://api.us-south.assistant.watson.cloud.ibm.com" |
| 48 | + DISCOVERY_APIKEY: ${{ secrets.D1_APIKEY }} |
| 49 | + DISCOVERY_ENVIRONMENT_ID: ${{ secrets.D1_ENVIRONMENT_ID }} |
| 50 | + DISCOVERY_COLLECTION_ID: ${{ secrets.D1_COLLECTION_ID }} |
| 51 | + DISCOVERY_URL: "https://api.us-south.discovery.watson.cloud.ibm.com" |
| 52 | + DISCOVERY_V2_APIKEY: ${{ secrets.D2_APIKEY }} |
| 53 | + DISCOVERY_V2_PROJECT_ID: ${{ secrets.D2_PROJECT_ID }} |
| 54 | + DISCOVERY_V2_COLLECTION_ID: ${{ secrets.D2_COLLECTION_ID }} |
| 55 | + DISCOVERY_V2_URL: "https://api.us-south.discovery.watson.cloud.ibm.com" |
| 56 | + run: | |
| 57 | + cp Sources/SupportingFiles/WatsonCredentialsGHA.swift Sources/SupportingFiles/WatsonCredentials.swift |
| 58 | + echo -e "\n\033[0;35mCommand: Run AssistantV1 Integration tests" |
| 59 | + set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme AssistantV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "AssistantV1Tests/AssistantTests" | xcpretty |
| 60 | + echo -e "\n\033[0;35mCommand: Run AssistantV2 Integration tests" |
| 61 | + set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme AssistantV2 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
| 62 | + echo -e "\n\033[0;35mCommand: Run DiscoveryV1 Integration tests" |
| 63 | + set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme DiscoveryV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "DiscoveryV1Tests/DiscoveryTests" | xcpretty |
| 64 | + echo -e "\n\033[0;35mCommand: Run DiscoveryV2 Integration tests" |
| 65 | + set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme DiscoveryV2 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "DiscoveryV2Tests/DiscoveryV2Tests" | xcpretty |
| 66 | + echo -e "\n\033[0;35mCommand: Run LanguageTranslatorV3 Integration tests" |
| 67 | + set -o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme LanguageTranslatorV3 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
| 68 | + echo -e "\n\033[0;35mCommand: Run NaturalLanguageUnderstandingV1 Integration tests" |
| 69 | + set -o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme NaturalLanguageUnderstandingV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
| 70 | + echo -e "\n\033[0;35mCommand: Run SpeechToTextV1 Integration tests" |
| 71 | + set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme SpeechToTextV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" -only-testing "SpeechToTextV1Tests/SpeechToTextTests" | xcpretty |
| 72 | + echo -e "\n\033[0;35mCommand: Run TextToSpeechV1 Integration tests" |
| 73 | + set +o pipefail && env NSUnbufferedIO=YES xcodebuild test -scheme TextToSpeechV1 -destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty |
0 commit comments