Skip to content

Commit 9549e56

Browse files
committed
refactor(ci): move vars to env
1 parent 98603fc commit 9549e56

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/java-server-ci.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,18 +213,15 @@ jobs:
213213
- name: Execute Selenium tests on BrowserStack cloud browsers
214214
working-directory: java-server
215215
env:
216-
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
217216
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
217+
BROWSERSTACK_BUILD_NAME: "Java Spring Selenium Tests #${{ github.run_number }}"
218+
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
218219
BROWSERSTACK_LOCAL: true
219-
TASK_TITLE: "${{ steps.seed_task.outputs.document-title }}"
220+
DITTO_CLOUD_TASK_TITLE: "${{ steps.seed_task.outputs.document-title }}"
220221
run: |
221222
# Run only the BrowserStack test method, not all test methods
222-
./gradlew test --tests "*TaskVisibilityIntegrationTest.shouldPassWithExistingTask" \
223-
-DBROWSERSTACK_USERNAME="${{ secrets.BROWSERSTACK_USERNAME }}" \
224-
-DBROWSERSTACK_ACCESS_KEY="${{ secrets.BROWSERSTACK_ACCESS_KEY }}" \
225-
-DBROWSERSTACK_BUILD_NAME="Java Spring Selenium Tests #${{ github.run_number }}" \
226-
-DBROWSERSTACK_LOCAL=true \
227-
-DDITTO_CLOUD_TASK_TITLE="$TASK_TITLE" \
223+
./gradlew test \
224+
--tests "*TaskVisibilityIntegrationTest.shouldPassWithExistingTask" \
228225
--info
229226
230227
- name: Stop Spring Boot app

0 commit comments

Comments
 (0)