Skip to content

Revamp

Revamp #23

Workflow file for this run

name: Google Chrome CI
on: [push, pull_request]
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