File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,23 @@ It is recommended you run [https://github.com/validator/validator](https://githu
1414```
1515java -Xss1024k -cp vnu.jar nu.validator.servlet.Main 8888
1616```
17- If you are not using a local server, you will need to add the following lines to your phpunit.xml config in the ** phpunit** element:
18- ``` xml
19- <php >
20- <env name =" PHPFUI\HTMLUnitTester\Extensions_url" value =" http://validator.w3.org/nu" />
21- <env name =" PHPFUI\HTMLUnitTester\Extensions_delay" value =" 500000" />
22- </php >
17+ To run unit tests with GitHub Actions, add the following lines to you workflows test yml file:
2318```
19+ - name: Setup Java
20+ uses: actions/setup-java@v2
21+ with:
22+ distribution: 'temurin'
23+ java-version: '11'
2424
25+ - name: Download vnu checker
26+ run: wget https://github.com/validator/validator/releases/download/20.6.30/vnu.jar_20.6.30.zip
27+
28+ - name: Unzip jar file
29+ run: unzip vnu.jar_20.6.30.zip
30+
31+ - name: Run Nu Html Checker (v.Nu)
32+ run: java -cp ./dist/vnu.jar -Xss1024k -Dnu.validator.servlet.bind-address=127.0.0.1 nu.validator.servlet.Main 8888 &
33+ ```
2534## Usage
2635Extend your unit tests from \PHPFUI\HTMLUnitTester\Extensions
2736``` php
You can’t perform that action at this time.
0 commit comments