-
-
Notifications
You must be signed in to change notification settings - Fork 137
33 lines (29 loc) · 1.17 KB
/
docker.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
name: Run Docker
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the container
run: |
docker buildx install
docker buildx build --load --platform linux/amd64 -t sitespeedio/browsertime .
- name: Test Chrome
run: docker run --rm sitespeedio/browsertime https://www.sitespeed.io -n 1 -b chrome
- name: Test Chrome with preWarmServer
run: docker run --rm sitespeedio/browsertime https://www.sitespeed.io -n 1 -b chrome --preWarmServer
- name: Test Firefox
run: docker run --rm sitespeedio/browsertime https://www.sitespeed.io -n 1 -b firefox
- name: Test Edge
run: docker run --rm sitespeedio/browsertime https://www.sitespeed.io -n 1 -b edge
- name: Test WebPageReplay
run: docker run --cap-add=NET_ADMIN --rm -e REPLAY=true -e LATENCY=100 sitespeedio/browsertime https://www.sitespeed.io -n 1 -b chrome
- name: Test Chrome with multi pages
run: docker run --rm -v "$(pwd)":/browsertime sitespeedio/browsertime test/data/navigationscript/simple.cjs -n 1 -b chrome