-
-
Notifications
You must be signed in to change notification settings - Fork 140
37 lines (33 loc) · 1.37 KB
/
docker.yml
File metadata and controls
37 lines (33 loc) · 1.37 KB
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
name: Run Docker
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Harden Runner
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- 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