Skip to content

Commit 7344ca9

Browse files
authored
GitHub Actions - Make it possible to run test against url
1 parent f0947c8 commit 7344ca9

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/manual-start.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: "Manual - Run test against url"
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
url:
6+
description: 'Webpage url to test'
7+
required: true
8+
default: 'https://webperf.se/'
9+
type: string
10+
env:
11+
TEST_TAG: webperfse/webperf-core:test
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20.x'
21+
- name: Install latest Chrome
22+
run: |
23+
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
24+
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
25+
sudo apt-get update
26+
sudo apt-get --only-upgrade install google-chrome-stable
27+
google-chrome --version
28+
- name: Browser versions
29+
run: |
30+
google-chrome --version
31+
- name: Install sitespeed.io
32+
run: |
33+
npm install sitespeed.io -g
34+
cd ../plugin-accessibility-statement
35+
npm install
36+
- name: Start local HTTP server
37+
run: (npm run start-server&)
38+
- name: Lint
39+
run: npm run lint
40+
- name: Show sitespeed.io version
41+
run: sitespeed.io --version
42+
- name: Run tests using plugin
43+
run: sitespeed.io --plugins.add ./lib/index.js --browsertime.chrome.includeResponseBodies all --xvfb -n 1 --allystatement.terminal.showresults true ${{ github.event.inputs.url }}

0 commit comments

Comments
 (0)