Skip to content

Commit

Permalink
Removed PDF and screen shot, was not working and not important for th…
Browse files Browse the repository at this point in the history
…is PR
  • Loading branch information
jeremypoulter committed May 9, 2023
1 parent 7e64d5b commit ca22736
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/divert_sim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,6 @@ jobs:
mkdir -p output
pytest -v --color=yes --code-highlight yes --junitxml=output/test_results.xml
- name: Start server to view test results
uses: Eun/http-server-action@v1
with:
directory: ${{ github.workspace }}/OpenEVSE_WiFi/divert_sim
port: 8080
no-cache: false

- name: Generate a PDF for the test results
uses: misaelnieto/web_to_pdf_action@master
with:
webPageURL: http://localhost:8080/view.html
outputFile: OpenEVSE_WiFi/divert_sim/${{ github.ref_name }}_test_results.pdf
pdfOptions: '{"format": "A4", "margin": {"top": "10mm", "left": "10mm", "right": "10mm", "bottom": "10mm"}}'

- name: Screenshot the test results webpage
uses: swinton/[email protected]
with:
source: http://localhost:8080/view.html
destination: ${{ github.ref_name }}_test_results.png
full-page: true

- name : Upload test results
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ca22736

Please sign in to comment.