Merge pull request #106 from blankRiot96/revamp #26
This file contains hidden or 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
name: Google Chrome CI | ||
on: | ||
push: | ||
branches: | ||
main | ||
pull-request: | ||
branches: | ||
main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: install dependencies | ||
run: | | ||
sudo apt-get update | ||
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | ||
sudo apt install ./google-chrome-stable_current_amd64.deb -y | ||
sudo apt-get install ruby-dev build-essential zlib1g-dev -y | ||
sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb -y | ||
- name: install ruby and node deps | ||
run: | | ||
mkdir ~/.ruby | ||
echo 'export GEM_HOME=~/.ruby/' >> ~/.bashrc | ||
echo 'export PATH="$PATH:~/.ruby/bin"' >> ~/.bashrc | ||
source ~/.bashrc | ||
sudo gem install jekyll bundler | ||
sudo bundle install | ||
npm install | ||
- name: run Chrome tests | ||
run: bundle exec jekyll serve & npx cypress run --browser chrome | ||
# gems should not be installed with, and bundle should not be run with `sudo`. | ||
# We are doing it because this is only a temporary docker container for CI runs | ||
# so it doesn't particularly matter |