Skip to content

Commit

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

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

0 comments on commit 8a32ef9

Please sign in to comment.