Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying new updated tests #15

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
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"
}
}
}

Loading