Skip to content

Commit

Permalink
Create test-google-chrome.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagobento authored Dec 5, 2023
1 parent 5b77b7a commit ef6f844
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/test-google-chrome.yml
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

0 comments on commit ef6f844

Please sign in to comment.