Skip to content

Commit

Permalink
trying new updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed May 19, 2024
1 parent 68cb5ac commit c903756
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,24 @@ jobs:
- name: Run Tests
run: ./vendor/bin/pest
working-directory: ./laravel_app

# This is where we start the Lighthouse tests

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install Lighthouse CI
run: npm install -g @lhci/[email protected]

- name: Start Laravel server
run: php artisan serve --host=0.0.0.0 --port=8080 &
working-directory: ./laravel_app

- name: Wait for server to be up
run: sleep 15

- name: Run Lighthouse CI
run: lhci autorun
working-directory: ./laravel_app
20 changes: 20 additions & 0 deletions lighthouserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"ci": {
"collect": {
"url": [
"http://localhost:8080/login",
"http://localhost:8080/register"
],
"numberOfRuns": 3
},
"assert": {
"assertions": {
"categories:accessibility": ["error", {"minScore": 0.9}]
}
},
"upload": {
"target": "temporary-public-storage"
}
}
}

0 comments on commit c903756

Please sign in to comment.