Skip to content

Commit aec553c

Browse files
committed
Convert to running vnu checker locally
1 parent 4a89add commit aec553c

File tree

2 files changed

+17
-26
lines changed

2 files changed

+17
-26
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
matrix:
1111
php: [8.1, 8.0, 7.4]
1212
dependency-version: [prefer-stable]
13-
os: [ubuntu-latest, windows-latest]
13+
os: [ubuntu-latest]
1414

1515
name: ${{ matrix.os }} - PHP${{ matrix.php }} - ${{ matrix.dependency-version }}
1616

@@ -31,9 +31,23 @@ jobs:
3131
extensions: dom, curl, libxml, mbstring, zip, intl
3232
coverage: none
3333

34+
- name: Setup Java
35+
uses: actions/setup-java@v2
36+
with:
37+
distribution: 'temurin'
38+
java-version: '11'
39+
40+
- name: Download vnu checker
41+
run: wget https://github.com/validator/validator/releases/download/20.6.30/vnu.jar_20.6.30.zip
42+
43+
- name: Unzip jar file
44+
run: unzip vnu.jar_20.6.30.zip dist/vnu.jar -D .
45+
46+
- name: Run Nu Html Checker (v.Nu)
47+
run: java -cp -jar ./vnu.jar -Xss1024k -Dnu.validator.servlet.bind-address=127.0.0.1 nu.validator.servlet.Main 8888
48+
3449
- name: Install dependencies
35-
run: |
36-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
50+
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
3751

3852
- name: Execute tests
3953
run: vendor/bin/phpunit

phpunit.xml.dist

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)