Skip to content

Commit 5ea4b3f

Browse files
authored
Splitting CI into separate browsers (#98)
* broke CI into separate browsers * updated names of workflows
1 parent 52770f2 commit 5ea4b3f

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

.github/workflows/chrome_ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Google Chrome CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: install dependencies
12+
run: |
13+
sudo apt-get update
14+
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
15+
sudo apt install ./google-chrome-stable_current_amd64.deb -y
16+
sudo apt-get install ruby-dev build-essential zlib1g-dev -y
17+
sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb -y
18+
- name: install ruby and node deps
19+
run: |
20+
mkdir ~/.ruby
21+
echo 'export GEM_HOME=~/.ruby/' >> ~/.bashrc
22+
echo 'export PATH="$PATH:~/.ruby/bin"' >> ~/.bashrc
23+
source ~/.bashrc
24+
sudo gem install jekyll bundler
25+
sudo bundle install
26+
npm install
27+
- name: run Chrome tests
28+
run: bundle exec jekyll serve & npx cypress run --browser chrome
29+
30+
# gems should not be installed with, and bundle should not be run with `sudo`.
31+
# We are doing it because this is only a temporary docker container for CI runs
32+
# so it doesn't particularly matter
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: Electron CI
22

33
on: [push, pull_request]
44

@@ -11,8 +11,6 @@ jobs:
1111
- name: install dependencies
1212
run: |
1313
sudo apt-get update
14-
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
15-
sudo apt install ./google-chrome-stable_current_amd64.deb -y
1614
sudo apt-get install ruby-dev build-essential zlib1g-dev -y
1715
sudo apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb -y
1816
- name: install ruby and node deps
@@ -30,8 +28,6 @@ jobs:
3028
# firefox does not currently work
3129
# - name: run Firefox tests
3230
# run: bundle exec jekyll serve & npx cypress run --browser firefox
33-
- name: run Chrome tests
34-
run: bundle exec jekyll serve & npx cypress run --browser chrome
3531

3632
# gems should not be installed with, and bundle should not be run with `sudo`.
3733
# We are doing it because this is only a temporary docker container for CI runs

0 commit comments

Comments
 (0)