-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
lighthouserc.js
89 lines (88 loc) · 5.16 KB
/
lighthouserc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
module.exports = {
ci: {
collect: {
url: [
'http://127.0.0.1:8000/dashboard/admin/',
'http://127.0.0.1:8000/communityroles/role/1/',
'http://127.0.0.1:8000/communityroles/role/1/edit/',
'http://127.0.0.1:8000/dashboard/instructor/autoupdate_profile/',
'http://127.0.0.1:8000/dashboard/instructor/',
'http://127.0.0.1:8000/dashboard/admin/search/',
'http://127.0.0.1:8000/dashboard/instructor/training_progress/',
'http://127.0.0.1:8000/dashboard/instructor/teaching_opportunities/',
'http://127.0.0.1:8000/account/password_reset/',
"http://127.0.0.1:8000/forms/self-organized/",
"http://127.0.0.1:8000/forms/self-organized/confirm/",
"http://127.0.0.1:8000/workshops/memberships/",
"http://127.0.0.1:8000/workshops/organizations/",
"http://127.0.0.1:8000/forms/request_training/confirm/",
"http://127.0.0.1:8000/forms/request_training/",
"http://127.0.0.1:8000/forms/inquiry/confirm/",
"http://127.0.0.1:8000/forms/inquiry/",
'http://127.0.0.1:8000/forms/workshop/',
"http://127.0.0.1:8000/forms/request_workshop/confirm/",
"http://127.0.0.1:8000/forms/request_workshop/",
"http://127.0.0.1:8000/requests/bulk_upload_training_request_scores/",
"http://127.0.0.1:8000/requests/selforganised_submissions/",
"http://127.0.0.1:8000/requests/workshop_inquiries/",
'http://127.0.0.1:8000/requests/workshop_requests/',
'http://127.0.0.1:8000/requests/selforganised_submission/1/set_state/pending/',
'http://127.0.0.1:8000/requests/selforganised_submission/1/accept_event/',
'http://127.0.0.1:8000/requests/training_request/1/',
"http://127.0.0.1:8000/requests/training_requests/merge?trainingrequest_a=1&trainingrequest_b=2",
"http://127.0.0.1:8000/requests/workshop_inquiry/1/set_state/pending/",
"http://127.0.0.1:8000/requests/workshop_inquiry/1/accept_event/",
'http://127.0.0.1:8000/requests/workshop_request/1/set_state/pending/',
'http://127.0.0.1:8000/requests/workshop_request/2/set_state/discarded/',
'http://127.0.0.1:8000/requests/workshop_request/1/edit/',
'http://127.0.0.1:8000/requests/workshop_request/1/accept_event/',
'http://127.0.0.1:8000/fiscal/membership/1/',
'http://127.0.0.1:8000/fiscal/membership/1/members/',
"http://127.0.0.1:8000/recruitment/process/add/1/",
'http://127.0.0.1:8000/recruitment/process/1/add-signup',
"http://127.0.0.1:8000/recruitment/process/1/",
'http://127.0.0.1:8000/recruitment/processes/',
"http://127.0.0.1:8000/reports/duplicate_persons/",
"http://127.0.0.1:8000/reports/duplicate_training_requests/",
"http://127.0.0.1:8000/reports/instructor_issues/",
"http://127.0.0.1:8000/reports/membership_trainings_stats/",
"http://127.0.0.1:8000/reports/workshop_issues/",
'http://127.0.0.1:8000/trainings/trainees/',
"http://127.0.0.1:8000/trainings/trainings/",
"http://127.0.0.1:8000/trainings/training_progress/1/edit/",
"http://127.0.0.1:8000/workshops/airport/ALC/",
"http://127.0.0.1:8000/workshops/airports/",
"http://127.0.0.1:8000/workshops/badges/",
'http://127.0.0.1:8000/workshops/events/',
'http://127.0.0.1:8000/workshops/persons/',
"http://127.0.0.1:8000/workshops/tasks/",
"http://127.0.0.1:8000/workshops/badge/instructor/",
'http://127.0.0.1:8000/workshops/log/',
"http://127.0.0.1:8000/workshops/events/add",
"http://127.0.0.1:8000/workshops/events/merge/?event_a=1&event_b=2",
'http://127.0.0.1:8000/workshops/events/metadata_changed/',
"http://127.0.0.1:8000/workshops/version/1/",
"http://127.0.0.1:8000/workshops/persons/bulk_upload/",
'http://127.0.0.1:8000/workshops/persons/add/',
'http://127.0.0.1:8000/workshops/persons/merge/?person_a=2&person_b=3',
'http://127.0.0.1:8000/workshops/person/1/',
"http://127.0.0.1:8000/workshops/person/1/edit/",
'http://127.0.0.1:8000/workshops/task/1/',
"http://127.0.0.1:8000/workshops/workshop_staff/",
"http://127.0.0.1:8000/account/logout/"
],
startServerCommand: 'pipenv run make serve',
puppeteerScript: 'puppeteer-script.js',
numberOfRuns: 1
},
upload: {
target: 'filesystem',
outputDir: 'lighthouse-ci-report'
},
assert: {
assertions: {
"categories:accessibility": ["error", { "minScore": 1 }]
}
}
}
};