Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
99f407c
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
735fc79
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
0663ce8
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
fa41005
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
bf14ad2
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
aa1461e
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
21b97c3
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
dad7ab4
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
8c64f13
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
b5b0b50
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
23e87a1
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
b8274c0
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
dadd7e9
test: try to reproduce issue 109 in GitHub Action
adamhenson Jan 28, 2023
6189771
chore: bump lightouse-persist
adamhenson Jan 28, 2023
06f3760
chore: bump lightouse-persist
adamhenson Jan 28, 2023
c6e7522
fix: delay runs when multiple to give previous Chrome process time to…
adamhenson Jan 28, 2023
385b7ab
fix: delay runs when multiple to give previous Chrome process time to…
adamhenson Jan 28, 2023
85b4b54
fix: remove verbose logs
adamhenson Jan 28, 2023
060a136
chore: remove test assets
adamhenson Jan 28, 2023
e93e815
chore: remove vulnerabilities
adamhenson Jan 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/test-issue-109.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test Issue 109
on: [pull_request]

jobs:
build_and_test_lighthouse:
name: Build and Test (Lighthouse).
runs-on: ubuntu-latest
if: github.event.pull_request.merged == false && github.event.action != 'closed'
steps:
-
uses: actions/checkout@v3
-
name: Build docker image
run: docker build -t example:${{github.sha}} ${{ github.workspace }}
-
name: Start docker container
run: docker run -d -p 8080:80 example:${{github.sha}}
-
name: Create artifacts directory
run: mkdir -p ${{ github.workspace }}/tmp/artifacts/desktop && mkdir -p ${{ github.workspace }}/tmp/artifacts/mobile
-
name: Wait for fastboot to load
run: sleep 20 && curl http://localhost:8080/
-
name: Lighthouse Desktop
id: lighthouse-desktop
uses: actions/setup-node@v1
with:
node-version: "14.x"
- run: npm install
- run: npm run build
- name: Run Lighthouse Check
run: |
node ./dist/bin/lighthouse-check.js \
--device "desktop" \
--maxRetries "5" \
--urls "http://localhost:8080/modern/,http://localhost:8080/modern/blog-home.html,http://localhost:8080/modern/blog-post.html,http://localhost:8080/modern/contact.html,http://localhost:8080/modern/portfolio-item.html,http://localhost:8080/modern/portfolio-overview.html,http://localhost:8080/modern/pricing.html,http://localhost:8080/modern/faq.html,http://localhost:8080/freelancer/,http://localhost:8080/portfolio/,http://localhost:8080/shop/""