-
-
Notifications
You must be signed in to change notification settings - Fork 33
71 lines (71 loc) · 3.25 KB
/
regression-test-html.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: "Regression Test - HTML Validation Test"
on:
push:
paths-ignore:
- '**.md'
- 'software-full.json'
- 'software-sources.json'
- '**update-software.yml'
- 'update_software.py'
- 'SAMPLE-software-rules.json'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
config: ['review_show_improvements_only=True,sitespeed_use_docker=False']
version: [6]
include:
- os: ubuntu-latest
config: 'review_show_improvements_only=True,sitespeed_use_docker=True'
version: 6
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Setup dependencies using pip
run: pip install -r requirements.txt
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: Download vnu.jar (The Nu Html Checker) - Linux
run: wget -q -O vnu.jar https://github.com/validator/validator/releases/download/latest/vnu.jar
- if: ${{ matrix.os == 'windows-latest' }}
shell: pwsh
name: Download vnu.jar (The Nu Html Checker) - Windows
run: |
Invoke-WebRequest -Uri https://github.com/validator/validator/releases/download/latest/vnu.jar -OutFile vnu.jar
- name: Setup Node.js (v3 version 18.x)
uses: actions/setup-node@v3
with:
node-version: '18.x'
- if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash
name: Setup Google Chrome browser (ONLY used for Sitespeed)
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: Setup Sitespeed.io npm package (ONLY used for Sitespeed)
run: npm install sitespeed.io
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: Setup config (using SAMPLE-config.py as config.py) - LINUX
run: python .github/workflows/verify_result.py -c ${{ matrix.config }}
- if: ${{ matrix.os == 'windows-latest' }}
name: Setup config (using SAMPLE-config.py as config.py) - WINDOWS
run: python .github\workflows\verify_result.py -c ${{ matrix.config }}
- if: ${{ matrix.os == 'ubuntu-latest' }}
name: RUNNING TEST - LINUX
run: |
python default.py -t ${{ matrix.version }} -r -u https://webperf.se/ -o .github/workflows/testresult-${{ matrix.version }}.json
python .github/workflows/verify_result.py -t ${{ matrix.version }}
- if: ${{ matrix.os == 'windows-latest' }}
name: RUNNING TEST - WINDOWS
run: |
python default.py -t ${{ matrix.version }} -r -u https://webperf.se/ -o .github\workflows\testresult-${{ matrix.version }}.json
python .github\workflows\verify_result.py -t ${{ matrix.version }}