-
-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (48 loc) · 1.48 KB
/
gui.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test the GUI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- uses: actions/checkout@v4
- name: Install Chrome
run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt-get --only-upgrade install google-chrome-stable
google-chrome --version
- name: Start dependencies
run: docker compose -f docker-compose.yml up -d
- name: Start the server
run: |
npm install --prefix server
node server/app.js > server.log 2>&1 &
- name: Start the testrunner
run: |
npm install --prefix testrunner
node testrunner/app.js --log.verbose true > testrunner.log 2>&1 &
- name: Install sitespeed.io globally
run: npm install sitespeed.io -g
- name: Show versions
run: |
docker --version
sitespeed.io --version
- name: Run a test
run: sitespeed.io ./test/scripts/addatest.mjs --multi -n 1 --headless
- name: Display Server log
if: failure() || success()
run: cat server.log
- name: Display testrunner log
if: failure() || success()
run: cat testrunner.log