Skip to content

Commit

Permalink
Refactor CI workflow: consolidate environment variable setup for macO…
Browse files Browse the repository at this point in the history
…S and Windows to randomize test user credentials
  • Loading branch information
tsviz committed Dec 2, 2024
1 parent cfb943e commit ae7888b
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,11 @@ jobs:
with:
dotnet-version: '6.0.x'

- name: Set Environment Variables for macOS
if: matrix.os == 'macos-latest'
- name: Set Environment Variables
run: |
echo "TEST_USER=user1" >> $GITHUB_ENV
echo "TEST_ADMIN_USER=admin1" >> $GITHUB_ENV
- name: Set Environment Variables for Windows
if: matrix.os == 'windows-latest'
run: |
echo "TEST_USER=user2" >> $GITHUB_ENV
echo "TEST_ADMIN_USER=admin2" >> $GITHUB_ENV
index=$(shuf -i 1-8 -n 1)
echo "TEST_USER=user${index}" >> $GITHUB_ENV
echo "TEST_ADMIN_USER=admin${index}" >> $GITHUB_ENV
- name: Run UI Automated Selenium Tests
run: |
Expand Down

0 comments on commit ae7888b

Please sign in to comment.