Skip to content

Merge pull request #106 from blankRiot96/revamp #26

Merge pull request #106 from blankRiot96/revamp

Merge pull request #106 from blankRiot96/revamp #26

Workflow file for this run

name: Google Chrome CI

Check failure on line 1 in .github/workflows/chrome_ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/chrome_ci.yml

Invalid workflow file

`pull-request` is not a valid event name
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