-
-
Notifications
You must be signed in to change notification settings - Fork 626
53 lines (53 loc) · 1.71 KB
/
Copy pathwindowsFull.yml
File metadata and controls
53 lines (53 loc) · 1.71 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Example to run sitespeed.io on Windows
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-2025
if: ${{ !contains(github.event.head_commit.message, 'docs:') }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Use Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: '22.x'
- name: Get npm cache directory
id: npm-cache-dir
run: echo "dir=$(npm config get cache)" >> "$GITHUB_OUTPUT"
shell: bash
- name: Cache npm tarballs
uses: actions/cache@v4
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: windows-npm-sitespeed-${{ github.run_id }}
restore-keys: |
windows-npm-sitespeed-
- name: Install sitespeed.io
run: npm install sitespeed.io -g --prefer-offline --no-audit --no-fund
shell: bash
env:
GECKODRIVER_SKIP_DOWNLOAD: true
- name: Install ffmpeg
uses: AnimMouse/setup-ffmpeg@ae28d57dabbb148eff63170b6bf7f2b60062cbae # v1.2.3
with:
version: '7.1'
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.12'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install pyssim OpenCV-Python Numpy scipy
shell: cmd
- name: Example running test on Windows
run: sitespeed.io -n 1 --video --visualMetrics --viewPort 1024x768 https://www.sitespeed.io/
shell: bash