Skip to content

Commit

Permalink
test: lighthouse report
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Matola authored and Rodrigo Matola committed Dec 12, 2023
1 parent 8eb9ef5 commit 0a6fbb2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cypress_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,23 @@ jobs:
name: cypress_videos
path: cypress_videos.zip
retention-days: 15

- name: Lighthouse
if: always()
run: |
npm install -g lighthouse
lighthouse https://computer-database.gatling.io/computers --chrome-flags="--headless"
lighthouse https://computer-database.gatling.io/computers/new --chrome-flags="--headless"
lighthouse https://computer-database.gatling.io/computers/301 --chrome-flags="--headless"
- name: Zip Lighthouse reports
if: always()
run: zip -r lighthouse_reports.zip *.html

- name: Upload test videos
if: always()
uses: actions/upload-artifact@v3
with:
name: lighthouse_reports
path: lighthouse_reports.zip
retention-days: 15

0 comments on commit 0a6fbb2

Please sign in to comment.