forked from apache/incubator-kie-tools
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b77b7a
commit ef6f844
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: "Testing Google Chrome" | ||
on: | ||
push: | ||
branches: [main] | ||
jobs: | ||
run: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Install Fluxbox (Ubuntu only)" | ||
shell: bash | ||
run: | | ||
echo "STEP: Install Fluxbox (Ubuntu only)" | ||
cd ${{ inputs.working_dir }} | ||
if [ "${{ runner.os }}" == "Linux" ]; then | ||
sudo apt-get -y install fluxbox > /dev/null 2>&1 | ||
fi | ||
- name: "Start Xvfb (Ubuntu only)" | ||
shell: bash | ||
run: | | ||
echo "STEP: Start Xvfb (Ubuntu only)" | ||
cd ${{ inputs.working_dir }} | ||
if [ "${{ runner.os }}" == "Linux" ]; then | ||
/usr/bin/Xvfb :99 -screen 0 1920x1080x24 > /dev/null 2>&1 & | ||
fi | ||
- name: "Start Fluxbox (Ubuntu only)" | ||
shell: bash | ||
run: | | ||
echo "STEP: Start Fluxbox (Ubuntu only)" | ||
cd ${{ inputs.working_dir }} | ||
if [ "${{ runner.os }}" == "Linux" ]; then | ||
fluxbox -display :99 > /dev/null 2>&1 & | ||
fi | ||
- name: "Increase inotify watches (Ubuntu only)" | ||
shell: bash | ||
run: | | ||
echo "STEP: Increase inotify watches (Ubuntu only)" | ||
cd ${{ inputs.working_dir }} | ||
if [ "${{ runner.os }}" == "Linux" ]; then | ||
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
fi | ||
- name: "Try google-chrome" | ||
shell: bash | ||
run: | | ||
export DISPLAY=:99 | ||
google-chrome --enable-features=UnexpireFlagsM118 --allow-insecure-localhost & | ||
sleep 20 | ||
kill $(pgrep google-chrome) | ||
exit 0 |