-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 1.18 KB
/
chrome_ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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