File tree Expand file tree Collapse file tree 6 files changed +91
-4
lines changed Expand file tree Collapse file tree 6 files changed +91
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : Lighthouse
2
+
3
+ on :
4
+ pull_request :
5
+ paths-ignore :
6
+ - ' content/**/*.md'
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v1
14
+ - name : Use Node.js 12.x
15
+ uses : actions/setup-node@v1
16
+ with :
17
+ node-version : 12.x
18
+ # Build needs around 400 seconds on Netlify.
19
+ # We can not rely on "Waiting for 200", since the user
20
+ # might push another commit to an existing PR, meaning
21
+ # the deploy preview is already online.
22
+ - name : Sleep 400 seconds
23
+ run : sleep 400
24
+ - name : Waiting for 200 from the Netlify Preview
25
+ uses : jakepartusch/wait-for-netlify-action@v1
26
+ id : wait-for-netflify-preview
27
+ with :
28
+ site_name : ' docs-nestjs'
29
+ max_timeout : 600
30
+ - name : Run Lighthouse on urls and validate with lighthouserc
31
+ uses : treosh/lighthouse-ci-action@v2
32
+ with :
33
+ urls : |
34
+ ${{ steps.wait-for-netflify-preview.outputs.url }}
35
+ ${{ steps.wait-for-netflify-preview.outputs.url }}/first-steps
36
+ runs : 5
37
+ configPath : ' ./lighthouserc.json'
38
+ uploadArtifacts : true
39
+ temporaryPublicStorage : true
Original file line number Diff line number Diff line change
1
+ {
2
+ "ci" : {
3
+ "collect" : {
4
+ "numberOfRuns" : 5
5
+ },
6
+ "assert" : {
7
+ "assertions" : {
8
+ "categories:accessibility" : [
9
+ " error" ,
10
+ { "minScore" : 0.84 , "aggregationMethod" : " optimistic" }
11
+ ],
12
+ "categories:performance" : [
13
+ " error" ,
14
+ { "minScore" : 0.4 , "aggregationMethod" : " optimistic" }
15
+ ],
16
+ "categories:best-practices" : [
17
+ " error" ,
18
+ { "minScore" : 0.86 , "aggregationMethod" : " optimistic" }
19
+ ],
20
+ "categories:seo" : [
21
+ " error" ,
22
+ { "minScore" : 0.67 , "aggregationMethod" : " optimistic" }
23
+ ],
24
+ "categories:pwa" : " off" ,
25
+
26
+ "first-contentful-paint" : " off" ,
27
+
28
+ "canonical" : " off" ,
29
+ "label" : " off" ,
30
+
31
+ "color-contrast" : " off"
32
+ }
33
+ }
34
+ }
35
+ }
Original file line number Diff line number Diff line change 1
1
< footer >
2
2
< div class ="social-wrapper ">
3
- < a href ="https://www.facebook.com/kammysliwiec/ " target ="_blank "
3
+ < a
4
+ title ="Kamil Mysliwiec Facebook "
5
+ href ="https://www.facebook.com/kammysliwiec/ "
6
+ target ="_blank "
4
7
> < i class ="fab fa-facebook "> </ i
5
8
> </ a >
6
- < a href ="https://twitter.com/kammysliwiec " target ="_blank "
9
+ < a
10
+ title ="Kamil Mysliwiec Twitter "
11
+ href ="https://twitter.com/kammysliwiec "
12
+ target ="_blank "
7
13
> < i class ="fab fa-twitter "> </ i
8
14
> </ a >
9
- < a href ="https://github.com/kamilmysliwiec " target ="_blank "
15
+ < a
16
+ title ="Kamil Mysliwiec Github "
17
+ href ="https://github.com/kamilmysliwiec "
18
+ target ="_blank "
10
19
> < i class ="fab fa-github "> </ i
11
20
> </ a >
12
21
< a
Original file line number Diff line number Diff line change 4
4
href ="https://docs.nestjs.com/ "
5
5
title ="Documentation | NestJS - A node.js framework built on top of TypeScript "
6
6
>
7
- < img src ="/assets/logo-small.svg " />
7
+ < img alt =" NestJS Logo " src ="/assets/logo-small.svg " />
8
8
</ a >
9
9
</ div >
10
10
</ app-header >
@@ -29,6 +29,7 @@ <h4 class="title">Principal Sponsor</h4>
29
29
< a href ="https://valor-software.com/ " target ="_blank ">
30
30
< img
31
31
src ="/assets/sponsors/valor-software.png "
32
+ alt ="Valor Logo "
32
33
class ="logo-sponsor "
33
34
/>
34
35
</ a >
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ <h3>Join our Newsletter</h3>
28
28
< button
29
29
type ="submit "
30
30
class ="signup-button "
31
+ aria-label ="Signup to Newsletter "
31
32
[disabled] ="isDisabled "
32
33
[class.btn-success] ="isEmailAdded "
33
34
>
Original file line number Diff line number Diff line change 44
44
45
45
< link rel ="icon " type ="image/x-icon " href ="favicon.ico " />
46
46
< link
47
+ defer
47
48
href ="https://fonts.googleapis.com/icon?family=Material+Icons "
48
49
rel ="stylesheet "
49
50
/>
50
51
< link
52
+ defer
51
53
href ="https://fonts.googleapis.com/css?family=Inconsolata "
52
54
rel ="stylesheet "
53
55
/>
You can’t perform that action at this time.
0 commit comments