-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #939 from Webperf-se/lint-html
Added new HTML Test based on html-validate
- Loading branch information
Showing
22 changed files
with
454 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: "Regression Test - HTML Linting Test" | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
- '**software-full.json' | ||
- '**software-sources.json' | ||
- '**update-software.yml' | ||
- '**update_software_helper.py' | ||
- '**software-rules.json' | ||
- 'Dockerfile' | ||
- '**regression-test-404.yml' | ||
- '**regression-test-a11y-statement.yml' | ||
- '**regression-test-css.yml' | ||
- '**regression-test-docker-image.yml' | ||
- '**regression-test-email.yml' | ||
- '**regression-test-energy-efficiency.yml' | ||
- '**regression-test-google-lighthouse-based.yml' | ||
- '**regression-test-html.yml' | ||
- '**regression-test-http.yml' | ||
- '**regression-test-lint-css.yml' | ||
- '**regression-test-pa11y.yml' | ||
- '**regression-test-sitespeed-browsertime-har.yml' | ||
- '**regression-test-sitespeed.yml' | ||
- '**regression-test-software.yml' | ||
- '**regression-test-standard-files.yml' | ||
- '**regression-test-tracking.yml' | ||
- '**regression-test-translations.yml' | ||
- '**regression-test-webbkoll.yml' | ||
- '**regression-test-ylt.yml' | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
config: ['SITESPEED_USE_DOCKER=False'] | ||
version: [28] | ||
include: | ||
- os: ubuntu-latest | ||
config: 'SITESPEED_USE_DOCKER=True' | ||
version: 28 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
- name: Setup python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13' # 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 | ||
- name: Java Version | ||
run: java -version | ||
- name: Setup Node.js (v4 version 20.x) | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.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 npm packages | ||
run: npm install --omit=dev | ||
timeout-minutes: 30 | ||
- if: ${{ matrix.os == 'ubuntu-latest' }} | ||
name: RUNNING TEST - LINUX | ||
run: | | ||
python default.py -t ${{ matrix.version }} -r -u https://msb.se?webperf-core-test-28 -o data/testresult-${{ matrix.version }}.json --setting ${{ matrix.config }} --setting tests.sitespeed.xvfb=true --setting general.cache.use=true --setting general.cache.max-age=5256000 --setting general.cache.folder=unittests | ||
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://msb.se?webperf-core-test-28 -o data\testresult-${{ matrix.version }}.json --setting ${{ matrix.config }} --setting general.cache.use=true --setting general.cache.max-age=5256000 --setting general.cache.folder=unittests | ||
python .github\workflows\verify_result.py -t ${{ matrix.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# English (default). | ||
# Copyright (C) 2025 WebPerf | ||
# FIRST AUTHOR <[email protected]>, 2025. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2025-02-08 21:45+0200\n" | ||
"PO-Revision-Date: 2025-02-08 21:45+0200\n" | ||
"Last-Translator: mattias <[email protected]>\n" | ||
"Language-Team: English <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: pygettext.py 1.5\n" | ||
|
||
|
||
msgid "TEXT_RUNNING_TEST" | ||
msgstr "## Test: 28 - HTML\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_VERY_GOOD" | ||
msgstr "- The HTML is very good.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_GOOD" | ||
msgstr "- The HTML is good.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_OK" | ||
msgstr "- The HTML is neither good or bad.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_BAD" | ||
msgstr "- The HTML is bad.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_VERY_BAD" | ||
msgstr "- The HTML is very bad.\n" | ||
|
||
msgid "TEXT_REVIEW_ERRORS_ITEM" | ||
msgstr " - {0} (number of errors of this type: {1})\n" | ||
|
||
msgid "TEXT_REVIEW_RATING_GROUPED" | ||
msgstr ", number of grouped error type: {0}" | ||
|
||
msgid "TEXT_REVIEW_RATING_ITEMS" | ||
msgstr ", number of errors: {0}" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# English (default). | ||
# Copyright (C) 2025 WebPerf | ||
# FIRST AUTHOR <[email protected]>, 2025. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2025-02-08 21:45+0200\n" | ||
"PO-Revision-Date: 2025-02-08 21:45+0200\n" | ||
"Last-Translator: mattias <[email protected]>\n" | ||
"Language-Team: English <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: pygettext.py 1.5\n" | ||
|
||
|
||
msgid "TEXT_RUNNING_TEST" | ||
msgstr "## Test: 28 - HTML\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_VERY_GOOD" | ||
msgstr "- The HTML is very good.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_GOOD" | ||
msgstr "- The HTML is good.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_OK" | ||
msgstr "- The HTML is neither good or bad.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_BAD" | ||
msgstr "- The HTML is bad.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_VERY_BAD" | ||
msgstr "- The HTML is very bad.\n" | ||
|
||
msgid "TEXT_REVIEW_ERRORS_ITEM" | ||
msgstr " - {0} (number of errors of this type: {1})\n" | ||
|
||
msgid "TEXT_REVIEW_RATING_GROUPED" | ||
msgstr ", number of grouped error type: {0}" | ||
|
||
msgid "TEXT_REVIEW_RATING_ITEMS" | ||
msgstr ", number of errors: {0}" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Swedish | ||
# Copyright (C) 2025 WebPerf | ||
# FIRST AUTHOR <[email protected]>, 2025. | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"POT-Creation-Date: 2025-02-08 21:45+0200\n" | ||
"PO-Revision-Date: 2025-02-08 21:45+0200\n" | ||
"Last-Translator: mattias <[email protected]>\n" | ||
"Language-Team: Swedish <[email protected]>\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"Generated-By: pygettext.py 1.5\n" | ||
|
||
|
||
msgid "TEXT_RUNNING_TEST" | ||
msgstr "## Test: 28 - HTML\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_VERY_GOOD" | ||
msgstr "- HTML är välbyggd!\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_GOOD" | ||
msgstr "- HTML är bra.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_OK" | ||
msgstr "- HTML är ok.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_BAD" | ||
msgstr "- HTML är dålig.\n" | ||
|
||
msgid "TEXT_REVIEW_HTML_IS_VERY_BAD" | ||
msgstr "- HTML är väldigt dålig.\n" | ||
|
||
msgid "TEXT_REVIEW_ERRORS_ITEM" | ||
msgstr " - {0} (totalt {1} st)\n" | ||
|
||
msgid "TEXT_REVIEW_RATING_GROUPED" | ||
msgstr ", antal grupperade fel: {0}" | ||
|
||
msgid "TEXT_REVIEW_RATING_ITEMS" | ||
msgstr ", antal fel: {0}" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.