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 "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ; yarn run docker:push
71
+ run: echo "$DOCKERHUB_TOKEN" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin ; yarn run docker:push
72
72
  env:
73
- DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
74
- DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
73
+ DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
74
+ DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:15.5-alpine
1
+ FROM node:16-alpine
2
2
 
3
3
  ARG BUILD_DATE
4
4
  ARG VCS_REF
@@ -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.12",
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": "^8.3.0",
46
+ "lighthouse": "^9.1.0",
47
47
  "ramda": "^0.27.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@babel/core": "^7.15.5",
51
- "@babel/plugin-transform-runtime": "^7.14.5",
52
- "@babel/preset-env": "^7.15.6",
53
- "@babel/runtime": "^7.15.4",
54
- "babel-jest": "^27.2.1",
55
- "eslint": "^7.32.0",
56
- "eslint-config-airbnb-base": "^14.2.1",
57
- "eslint-plugin-import": "^2.24.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.2.1",
60
- "lint-staged": "^11.1.2",
59
+ "jest": "^27.3.1",
60
+ "lint-staged": "^12.1.2",
61
61
  "npm-run-all": "^4.1.5"
62
62
  },
63
63
  "jest": {