lighthouse-badges 1.1.12 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -68,7 +68,7 @@ jobs:
|
|
|
68
68
|
|
|
69
69
|
- name: Deploy to Dockerhub
|
|
70
70
|
if: github.ref == 'refs/heads/master'
|
|
71
|
-
run: echo "$
|
|
71
|
+
run: echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin ; yarn run docker:push
|
|
72
72
|
env:
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
74
|
+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
|
package/Dockerfile
CHANGED
|
@@ -14,9 +14,7 @@ describe('test lighthouse badges', () => {
|
|
|
14
14
|
it('should return correct metrics and no report', async () => {
|
|
15
15
|
const url = 'https://emanuelemazzotta.com';
|
|
16
16
|
const shouldSaveReport = false;
|
|
17
|
-
const result = await processRawLighthouseResult(
|
|
18
|
-
reportFixture, url, shouldSaveReport,
|
|
19
|
-
);
|
|
17
|
+
const result = await processRawLighthouseResult(reportFixture, url, shouldSaveReport);
|
|
20
18
|
expect({
|
|
21
19
|
metrics: {
|
|
22
20
|
'lighthouse performance': 98,
|
|
@@ -35,9 +33,7 @@ describe('test lighthouse badges', () => {
|
|
|
35
33
|
const expectedHtmlReport = ReportGenerator.generateReportHtml(reportFixture);
|
|
36
34
|
const url = 'https://emanuelemazzotta.com';
|
|
37
35
|
const shouldSaveReport = true;
|
|
38
|
-
const result = await processRawLighthouseResult(
|
|
39
|
-
reportFixture, url, shouldSaveReport,
|
|
40
|
-
);
|
|
36
|
+
const result = await processRawLighthouseResult(reportFixture, url, shouldSaveReport);
|
|
41
37
|
expect({
|
|
42
38
|
metrics: {
|
|
43
39
|
'lighthouse performance': 98,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse-badges",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "🚦Generate gh-badges (shields.io) based on Lighthouse performance.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"argparse": "2.0.1",
|
|
44
44
|
"badge-maker": "^3.3.1",
|
|
45
45
|
"clui": "^0.3.6",
|
|
46
|
-
"lighthouse": "^
|
|
46
|
+
"lighthouse": "^9.1.0",
|
|
47
47
|
"ramda": "^0.27.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@babel/core": "^7.
|
|
51
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
52
|
-
"@babel/preset-env": "^7.
|
|
53
|
-
"@babel/runtime": "^7.
|
|
54
|
-
"babel-jest": "^27.
|
|
55
|
-
"eslint": "^
|
|
56
|
-
"eslint-config-airbnb-base": "^
|
|
57
|
-
"eslint-plugin-import": "^2.
|
|
50
|
+
"@babel/core": "^7.16.0",
|
|
51
|
+
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
52
|
+
"@babel/preset-env": "^7.16.4",
|
|
53
|
+
"@babel/runtime": "^7.16.3",
|
|
54
|
+
"babel-jest": "^27.3.1",
|
|
55
|
+
"eslint": "^8.3.0",
|
|
56
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
57
|
+
"eslint-plugin-import": "^2.25.3",
|
|
58
58
|
"husky": "^7.0.2",
|
|
59
|
-
"jest": "^27.
|
|
60
|
-
"lint-staged": "^
|
|
59
|
+
"jest": "^27.3.1",
|
|
60
|
+
"lint-staged": "^12.1.2",
|
|
61
61
|
"npm-run-all": "^4.1.5"
|
|
62
62
|
},
|
|
63
63
|
"jest": {
|