8000 chore: cluster tests enabled (#781) · twilio/twilio-java@03718e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03718e5

Browse files
authored
chore: cluster tests enabled (#781)
* chore: cluster tests enabled * chore: added java17 for sonarscan
1 parent 120c877 commit 03718e5

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,21 @@ jobs:
4242
- name: Run Unit Tests
4343
run: mvn test -B
4444

45-
# - name: Run Cluster Test
46-
# if: (!github.event.pull_request.head.repo.fork)
47-
# env:
48-
# TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
49-
# TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
50-
# TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
51-
# TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
52-
# TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
53-
# run: mvn test -DTest="ClusterTest" -B
45+
- name: Run Cluster Test
46+
if: (!github.event.pull_request.head.repo.fork)
47+
env:
48+
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
49+
TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
50+
TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
51+
TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
52+
TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
53+
run: mvn test -DTest="ClusterTest" -B
5454

55+
- uses: actions/setup-java@v4
56+
with:
57+
distribution: 'zulu'
58+
java-version: '17'
59+
5560
- name: SonarCloud Scan
5661
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.java == 11 && !github.event.pull_request.head.repo.fork }}
5762
env:

0 commit comments

Comments
 (0)
0