File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 BranchName : ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
4040 BranchParam : ${{ github.event_name == 'pull_request' && 'sonar.pullrequest.branch' || 'sonar.branch.name' }}
4141 PullRequestParam : ${{ github.event_name == 'pull_request' && format('/d:sonar.pullrequest.key={0}', github.event.number) || '' }}
42- DISPLAY : :99
4342
4443 steps :
4544 - name : Checkout
@@ -68,19 +67,15 @@ jobs:
6867 with :
6968 java-version : 21
7069 distribution : ' zulu'
71- - name : Install GUI packages so Chrome may run
72- run : |
73- sudo apt-get update
74- sudo apt install -y xorg xvfb gtk2-engines-pixbuf dbus-x11 xfonts-base xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable psmisc
70+ - name : Install Google Chrome & dependencies
71+ uses : browser-actions/setup-chrome@v2
7572
7673 # Environment setup pre-build
7774
7875 - name : Setup Selenium Manager config
7976 run : |
8077 mkdir ~/.cache/selenium
8178 cp Tools/se-config.toml ~/.cache/selenium
82- - name : Start an Xvfb display so Chrome may run
83- run : Xvfb -ac $DISPLAY -screen 0 1280x1024x16 &
8479 - name : Restore .NET packages
8580 run : dotnet restore
8681 - name : Restore Node modules
@@ -138,9 +133,6 @@ jobs:
138133 - name : Stop SonarScanner
139134 run :
140135 dotnet sonarscanner end /d:sonar.token=${{ env.SonarCloudSecretKey }}
141- - name : Gracefully stop Xvfb
142- run : killall Xvfb
143- continue-on-error : true
144136 - name : Upload .NET test results artifacts
145137 uses : actions/upload-artifact@v4
146138 with :
You can’t perform that action at this time.
0 commit comments