From 251062db3ee8f9b3dda687ef7f67abdce0caf13e Mon Sep 17 00:00:00 2001 From: Louis Aussedat Date: Thu, 8 Feb 2024 11:06:55 +0100 Subject: [PATCH 1/3] chore: add prettier dsdk configuration --- apps/sample/.prettierrc.js | 3 +++ apps/sample/package.json | 5 ++++- package.json | 2 ++ packages/config/prettier/index.js | 6 ++++++ packages/config/prettier/package.json | 12 ++++++++++++ packages/core/.prettierignore | 1 + packages/core/.prettierrc.js | 3 +++ packages/core/package.json | 3 +++ packages/signer/.prettierrc.js | 3 +++ packages/signer/package.json | 5 ++++- packages/trusted-apps/.prettierrc.js | 3 +++ packages/trusted-apps/package.json | 5 ++++- packages/ui/.prettierrc.js | 3 +++ packages/ui/package.json | 5 ++++- pnpm-lock.yaml | 21 +++++++++++++++++++++ turbo.json | 6 ++++++ 16 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 apps/sample/.prettierrc.js create mode 100644 packages/config/prettier/index.js create mode 100644 packages/config/prettier/package.json create mode 100644 packages/core/.prettierignore create mode 100644 packages/core/.prettierrc.js create mode 100644 packages/signer/.prettierrc.js create mode 100644 packages/trusted-apps/.prettierrc.js create mode 100644 packages/ui/.prettierrc.js diff --git a/apps/sample/.prettierrc.js b/apps/sample/.prettierrc.js new file mode 100644 index 000000000..9601e1776 --- /dev/null +++ b/apps/sample/.prettierrc.js @@ -0,0 +1,3 @@ +module.exports = { + ...require("@ledgerhq/prettier-config-dsdk"), +}; diff --git a/apps/sample/package.json b/apps/sample/package.json index e1687eff5..28e02b982 100644 --- a/apps/sample/package.json +++ b/apps/sample/package.json @@ -7,7 +7,9 @@ "build": "next build", "start": "next start", "lint": "next lint --max-warnings=0", - "lint:fix": "next lint --fix" + "lint:fix": "next lint --fix", + "prettier": "prettier . --check", + "prettier:fix": "prettier . --write" }, "dependencies": { "@ledgerhq/device-sdk-core": "workspace:*", @@ -19,6 +21,7 @@ }, "devDependencies": { "@ledgerhq/eslint-config-dsdk": "workspace:*", + "@ledgerhq/prettier-config-dsdk": "workspace:*", "@ledgerhq/tsconfig-dsdk": "workspace:*", "@types/react": "^18", "@types/styled-components": "^5.1.25", diff --git a/package.json b/package.json index e34a6773d..91cd3fd64 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,8 @@ "dev": "turbo dev --log-order=grouped", "lint": "turbo run lint --log-order=grouped", "lint:fix": "turbo run lint:fix --log-order=grouped", + "prettier": "turbo run prettier --log-order=grouped", + "prettier:fix": "turbo run prettier:fix --log-order=grouped", "test": "turbo run test --log-order=grouped", "core": "pnpm --filter @ledgerhq/device-sdk-core", "signer": "pnpm --filter @ledgerhq/device-sdk-signer", diff --git a/packages/config/prettier/index.js b/packages/config/prettier/index.js new file mode 100644 index 000000000..94c6c3ed9 --- /dev/null +++ b/packages/config/prettier/index.js @@ -0,0 +1,6 @@ +/** @type {import('prettier').Config} **/ +module.exports = { + tabWidth: 2, + semi: true, + singleQuote: false, +}; diff --git a/packages/config/prettier/package.json b/packages/config/prettier/package.json new file mode 100644 index 000000000..c81279052 --- /dev/null +++ b/packages/config/prettier/package.json @@ -0,0 +1,12 @@ +{ + "name": "@ledgerhq/prettier-config-dsdk", + "license": "MIT", + "version": "0.0.1", + "private": true, + "files": [ + "index.js" + ], + "devDependencies": { + "prettier": "^3.1.1" + } +} diff --git a/packages/core/.prettierignore b/packages/core/.prettierignore new file mode 100644 index 000000000..4eb56dc37 --- /dev/null +++ b/packages/core/.prettierignore @@ -0,0 +1 @@ +lib/* \ No newline at end of file diff --git a/packages/core/.prettierrc.js b/packages/core/.prettierrc.js new file mode 100644 index 000000000..9601e1776 --- /dev/null +++ b/packages/core/.prettierrc.js @@ -0,0 +1,3 @@ +module.exports = { + ...require("@ledgerhq/prettier-config-dsdk"), +}; diff --git a/packages/core/package.json b/packages/core/package.json index 18024d2fd..a59aba017 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -12,6 +12,8 @@ "dev": "tsc && (concurrently \"tsc -w -p tsconfig.prod.json\" \"tsc-alias -w -p tsconfig.prod.json\")", "lint": "eslint --cache --ext .ts \"src\" --max-warnings=0", "lint:fix": "eslint --cache --fix --ext .ts \"src\"", + "prettier": "prettier . --check", + "prettier:fix": "prettier . --write", "test": "jest src", "test:watch": "pnpm test -- --watch", "test:coverage": "pnpm test -- --coverage", @@ -27,6 +29,7 @@ "@ledgerhq/eslint-config-dsdk": "workspace:*", "@ledgerhq/jest-config-dsdk": "workspace:*", "@ledgerhq/tsconfig-dsdk": "workspace:*", + "@ledgerhq/prettier-config-dsdk": "workspace:*", "concurrently": "^8.2.2", "ts-node": "^10.9.2", "tsc-alias": "^1.8.8" diff --git a/packages/signer/.prettierrc.js b/packages/signer/.prettierrc.js new file mode 100644 index 000000000..9601e1776 --- /dev/null +++ b/packages/signer/.prettierrc.js @@ -0,0 +1,3 @@ +module.exports = { + ...require("@ledgerhq/prettier-config-dsdk"), +}; diff --git a/packages/signer/package.json b/packages/signer/package.json index 17a553008..8c74449ef 100644 --- a/packages/signer/package.json +++ b/packages/signer/package.json @@ -12,6 +12,8 @@ "dev": "tsc --watch", "lint": "eslint --cache --ext .ts \"src\" --max-warnings=0", "lint:fix": "eslint --cache --fix --ext .ts \"src\"", + "prettier": "prettier . --check", + "prettier:fix": "prettier . --write", "test": "jest --passWithNoTests" }, "dependencies": { @@ -21,6 +23,7 @@ "devDependencies": { "@ledgerhq/tsconfig-dsdk": "workspace:*", "@ledgerhq/eslint-config-dsdk": "workspace:*", - "@ledgerhq/jest-config-dsdk": "workspace:*" + "@ledgerhq/jest-config-dsdk": "workspace:*", + "@ledgerhq/prettier-config-dsdk": "workspace:*" } } diff --git a/packages/trusted-apps/.prettierrc.js b/packages/trusted-apps/.prettierrc.js new file mode 100644 index 000000000..9601e1776 --- /dev/null +++ b/packages/trusted-apps/.prettierrc.js @@ -0,0 +1,3 @@ +module.exports = { + ...require("@ledgerhq/prettier-config-dsdk"), +}; diff --git a/packages/trusted-apps/package.json b/packages/trusted-apps/package.json index 90d20c862..171482f20 100644 --- a/packages/trusted-apps/package.json +++ b/packages/trusted-apps/package.json @@ -11,6 +11,8 @@ "build": "rimraf lib && tsc", "lint": "eslint --cache --ext .ts \"src\" --max-warnings=0", "lint:fix": "eslint --cache --fix --ext .ts \"src\"", + "prettier": "prettier . --check", + "prettier:fix": "prettier . --write", "dev": "tsc --watch", "test": "jest --passWithNoTests" }, @@ -21,6 +23,7 @@ "devDependencies": { "@ledgerhq/tsconfig-dsdk": "workspace:*", "@ledgerhq/eslint-config-dsdk": "workspace:*", - "@ledgerhq/jest-config-dsdk": "workspace:*" + "@ledgerhq/jest-config-dsdk": "workspace:*", + "@ledgerhq/prettier-config-dsdk": "workspace:*" } } diff --git a/packages/ui/.prettierrc.js b/packages/ui/.prettierrc.js new file mode 100644 index 000000000..9601e1776 --- /dev/null +++ b/packages/ui/.prettierrc.js @@ -0,0 +1,3 @@ +module.exports = { + ...require("@ledgerhq/prettier-config-dsdk"), +}; diff --git a/packages/ui/package.json b/packages/ui/package.json index 41114ae19..8e08b6295 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -12,6 +12,8 @@ "dev": "tsc --watch", "lint": "eslint --cache --ext .ts \"src\" --max-warnings=0", "lint:fix": "eslint --cache --fix --ext .ts \"src\"", + "prettier": "prettier . --check", + "prettier:fix": "prettier . --write", "test": "jest --passWithNoTests" }, "dependencies": { @@ -21,6 +23,7 @@ "devDependencies": { "@ledgerhq/tsconfig-dsdk": "workspace:*", "@ledgerhq/eslint-config-dsdk": "workspace:*", - "@ledgerhq/jest-config-dsdk": "workspace:*" + "@ledgerhq/jest-config-dsdk": "workspace:*", + "@ledgerhq/prettier-config-dsdk": "workspace:*" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1910e9804..02ed8cfd5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -69,6 +69,9 @@ importers: '@ledgerhq/eslint-config-dsdk': specifier: workspace:* version: link:../../packages/config/eslint + '@ledgerhq/prettier-config-dsdk': + specifier: workspace:* + version: link:../../packages/config/prettier '@ledgerhq/tsconfig-dsdk': specifier: workspace:* version: link:../../packages/config/typescript @@ -121,6 +124,12 @@ importers: specifier: ^10.9.2 version: 10.9.2(@types/node@20.10.6)(typescript@5.3.3) + packages/config/prettier: + devDependencies: + prettier: + specifier: ^3.1.1 + version: 3.1.1 + packages/config/typescript: devDependencies: '@tsconfig/recommended': @@ -157,6 +166,9 @@ importers: '@ledgerhq/jest-config-dsdk': specifier: workspace:* version: link:../config/jest + '@ledgerhq/prettier-config-dsdk': + specifier: workspace:* + version: link:../config/prettier '@ledgerhq/tsconfig-dsdk': specifier: workspace:* version: link:../config/typescript @@ -185,6 +197,9 @@ importers: '@ledgerhq/jest-config-dsdk': specifier: workspace:* version: link:../config/jest + '@ledgerhq/prettier-config-dsdk': + specifier: workspace:* + version: link:../config/prettier '@ledgerhq/tsconfig-dsdk': specifier: workspace:* version: link:../config/typescript @@ -204,6 +219,9 @@ importers: '@ledgerhq/jest-config-dsdk': specifier: workspace:* version: link:../config/jest + '@ledgerhq/prettier-config-dsdk': + specifier: workspace:* + version: link:../config/prettier '@ledgerhq/tsconfig-dsdk': specifier: workspace:* version: link:../config/typescript @@ -223,6 +241,9 @@ importers: '@ledgerhq/jest-config-dsdk': specifier: workspace:* version: link:../config/jest + '@ledgerhq/prettier-config-dsdk': + specifier: workspace:* + version: link:../config/prettier '@ledgerhq/tsconfig-dsdk': specifier: workspace:* version: link:../config/typescript diff --git a/turbo.json b/turbo.json index 14fd58d9f..7f7e55118 100644 --- a/turbo.json +++ b/turbo.json @@ -12,6 +12,12 @@ "lint:fix": { "dependsOn": ["^lint:fix"] }, + "prettier": { + "dependsOn": ["^prettier"] + }, + "prettier:fix": { + "dependsOn": ["^prettier:fix"] + }, "dev": { "dependsOn": ["build"], "cache": false, From c18da98cee7ee9cfd5d83de63c6266cbb0813ac0 Mon Sep 17 00:00:00 2001 From: Louis Aussedat Date: Thu, 8 Feb 2024 11:08:06 +0100 Subject: [PATCH 2/3] chore: run prettier:fix on repo --- .../src/providers/DeviceSdkProvider/index.tsx | 2 +- apps/sample/tsconfig.json | 14 ++----- packages/core/src/di.ts | 2 +- .../config/data/LocalConfigDataSource.test.ts | 8 ++-- .../config/data/LocalConfigDataSource.ts | 2 +- .../data/RemoteConfigDataSource.stub.ts | 4 +- .../data/RemoteConfigDataSource.test.ts | 38 +++++++++---------- .../config/data/RemoteConfigDataSource.ts | 4 +- .../service/DefaultConfigService.test.ts | 4 +- .../config/service/DefaultConfigService.ts | 2 +- packages/core/tsconfig.json | 2 +- packages/signer/tsconfig.json | 2 +- 12 files changed, 38 insertions(+), 46 deletions(-) diff --git a/apps/sample/src/providers/DeviceSdkProvider/index.tsx b/apps/sample/src/providers/DeviceSdkProvider/index.tsx index 976645d59..8966e1090 100644 --- a/apps/sample/src/providers/DeviceSdkProvider/index.tsx +++ b/apps/sample/src/providers/DeviceSdkProvider/index.tsx @@ -1,5 +1,5 @@ import { createContext, useContext } from "react"; -import { DeviceSdk,DeviceSdkBuilder } from "@ledgerhq/device-sdk-core"; +import { DeviceSdk, DeviceSdkBuilder } from "@ledgerhq/device-sdk-core"; export const sdk = new DeviceSdkBuilder().build(); diff --git a/apps/sample/tsconfig.json b/apps/sample/tsconfig.json index 2533e1dd9..f9c79624a 100644 --- a/apps/sample/tsconfig.json +++ b/apps/sample/tsconfig.json @@ -7,18 +7,10 @@ } ], "paths": { - "@/*": [ - "./src/*" - ] + "@/*": ["./src/*"] }, "strictNullChecks": true }, - "include": [ - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], - "exclude": [ - "node_modules" - ] + "include": ["**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] } diff --git a/packages/core/src/di.ts b/packages/core/src/di.ts index e3d4074dd..f11aed3f2 100644 --- a/packages/core/src/di.ts +++ b/packages/core/src/di.ts @@ -14,7 +14,7 @@ export const makeContainer = ({ const container = new Container(); container.applyMiddleware(logger); container.load( - configModuleFactory({ stub }) + configModuleFactory({ stub }), // modules go here ); diff --git a/packages/core/src/internal/config/data/LocalConfigDataSource.test.ts b/packages/core/src/internal/config/data/LocalConfigDataSource.test.ts index 6573d33f2..e4383377f 100644 --- a/packages/core/src/internal/config/data/LocalConfigDataSource.test.ts +++ b/packages/core/src/internal/config/data/LocalConfigDataSource.test.ts @@ -26,7 +26,7 @@ describe("LocalConfigDataSource", () => { it("should return an Either", () => { readFileSyncSpy.mockReturnValue( - JSON.stringify({ name: "DeviceSDK", version: "0.0.0-spied.1" }) + JSON.stringify({ name: "DeviceSDK", version: "0.0.0-spied.1" }), ); jsonParse.mockReturnValue({ @@ -38,7 +38,7 @@ describe("LocalConfigDataSource", () => { Either.of({ name: "DeviceSDK", version: "0.0.0-spied.1", - }) + }), ); }); @@ -54,7 +54,7 @@ describe("LocalConfigDataSource", () => { it("should return an Either if JSON.parse throws", () => { const err = new Error("JSON.parse error"); readFileSyncSpy.mockReturnValue( - JSON.stringify({ name: "DeviceSDK", version: "0.0.0-spied.1" }) + JSON.stringify({ name: "DeviceSDK", version: "0.0.0-spied.1" }), ); jsonParse.mockImplementation(() => { @@ -71,7 +71,7 @@ describe("LocalConfigDataSource", () => { JSON.stringify({ name: "@ledgerhq/device-sdk-core", version: "0.0.1", - }) + }), ); }); }); diff --git a/packages/core/src/internal/config/data/LocalConfigDataSource.ts b/packages/core/src/internal/config/data/LocalConfigDataSource.ts index ce9201bb2..8e48056ca 100644 --- a/packages/core/src/internal/config/data/LocalConfigDataSource.ts +++ b/packages/core/src/internal/config/data/LocalConfigDataSource.ts @@ -37,7 +37,7 @@ export class FileLocalConfigDataSource implements LocalConfigDataSource { (error) => { console.log("JSON.parse error"); return new JSONParseError(error); - } + }, ); }); } diff --git a/packages/core/src/internal/config/data/RemoteConfigDataSource.stub.ts b/packages/core/src/internal/config/data/RemoteConfigDataSource.stub.ts index eb2d887d2..c1a768c1d 100644 --- a/packages/core/src/internal/config/data/RemoteConfigDataSource.stub.ts +++ b/packages/core/src/internal/config/data/RemoteConfigDataSource.stub.ts @@ -17,8 +17,8 @@ export class StubRemoteConfigDataSource implements RemoteConfigDataSource { Either.of({ name: "DeviceSDK", version: "0.0.0-fake.2", - }) - ) + }), + ), ); } } diff --git a/packages/core/src/internal/config/data/RemoteConfigDataSource.test.ts b/packages/core/src/internal/config/data/RemoteConfigDataSource.test.ts index 0915603ee..d6725ed9e 100644 --- a/packages/core/src/internal/config/data/RemoteConfigDataSource.test.ts +++ b/packages/core/src/internal/config/data/RemoteConfigDataSource.test.ts @@ -15,11 +15,11 @@ let datasource: RemoteConfigDataSource; /* eslint-disable @typescript-eslint/no-explicit-any */ const callApiSpy = jest.spyOn( RestRemoteConfigDataSource.prototype as any, - "_callApi" + "_callApi", ); const parseResponseSpy = jest.spyOn( RestRemoteConfigDataSource.prototype as any, - "_parseResponse" + "_parseResponse", ); /* eslint-enable @typescript-eslint/no-explicit-any */ @@ -37,23 +37,23 @@ describe("RemoteRestConfigDataSource", () => { ok: true, json: () => Promise.resolve( - Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1" }) + Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1" }), ), - }) + }), ); parseResponseSpy.mockReturnValue( Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1", - }) + }), ); expect(await datasource.getConfig()).toStrictEqual( Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1", - }) + }), ); }); @@ -62,7 +62,7 @@ describe("RemoteRestConfigDataSource", () => { callApiSpy.mockResolvedValue(Left(err)); expect(await datasource.getConfig()).toStrictEqual( - Left(new ApiCallError(err)) + Left(new ApiCallError(err)), ); }); @@ -72,13 +72,13 @@ describe("RemoteRestConfigDataSource", () => { ok: false, json: () => Promise.resolve( - Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1" }) + Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1" }), ), - }) + }), ); expect(await datasource.getConfig()).toStrictEqual( - Left(new ApiCallError(new Error("response not ok"))) + Left(new ApiCallError(new Error("response not ok"))), ); }); @@ -88,11 +88,11 @@ describe("RemoteRestConfigDataSource", () => { Either.of({ ok: true, json: () => Promise.resolve(Left(err)), - }) + }), ); expect(await datasource.getConfig()).toStrictEqual( - Left(new JSONParseError()) + Left(new JSONParseError()), ); }); @@ -102,9 +102,9 @@ describe("RemoteRestConfigDataSource", () => { ok: true, json: () => Promise.resolve( - Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1" }) + Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1" }), ), - }) + }), ); parseResponseSpy.mockImplementation(() => { @@ -112,7 +112,7 @@ describe("RemoteRestConfigDataSource", () => { }); expect(await datasource.getConfig()).toStrictEqual( - Left(new ParseResponseError()) + Left(new ParseResponseError()), ); }); @@ -126,13 +126,13 @@ describe("RemoteRestConfigDataSource", () => { Either.of({ version: "0.0.0-fake.1", yolo: "yolo", - }) + }), ), - }) + }), ); expect(await datasource.getConfig()).toStrictEqual( - Left(new ParseResponseError()) + Left(new ParseResponseError()), ); }); @@ -147,7 +147,7 @@ describe("RemoteRestConfigDataSource", () => { Either.of({ name: "DeviceSDK", version: "0.0.0-fake.1", - }) + }), ); }); }); diff --git a/packages/core/src/internal/config/data/RemoteConfigDataSource.ts b/packages/core/src/internal/config/data/RemoteConfigDataSource.ts index 9db968ff1..73e5df106 100644 --- a/packages/core/src/internal/config/data/RemoteConfigDataSource.ts +++ b/packages/core/src/internal/config/data/RemoteConfigDataSource.ts @@ -72,10 +72,10 @@ export class RestRemoteConfigDataSource implements RemoteConfigDataSource { name: "DeviceSDK", version: "0.0.0-fake.1", yolo: "yolo", - }) + }), ); }), - }) + }), ); }); } diff --git a/packages/core/src/internal/config/service/DefaultConfigService.test.ts b/packages/core/src/internal/config/service/DefaultConfigService.test.ts index 4d6f41817..3ad572470 100644 --- a/packages/core/src/internal/config/service/DefaultConfigService.test.ts +++ b/packages/core/src/internal/config/service/DefaultConfigService.test.ts @@ -28,7 +28,7 @@ describe("DefaultConfigService", () => { Either.of({ name: "DeviceSDK", version: "1.0.0-local", - }) + }), ); expect(await service.getSdkConfig()).toStrictEqual({ @@ -45,7 +45,7 @@ describe("DefaultConfigService", () => { Either.of({ name: "DeviceSDK", version: "1.0.0-remote", - }) + }), ); expect(await service.getSdkConfig()).toStrictEqual({ diff --git a/packages/core/src/internal/config/service/DefaultConfigService.ts b/packages/core/src/internal/config/service/DefaultConfigService.ts index ff81f6c8a..8a6183a5c 100644 --- a/packages/core/src/internal/config/service/DefaultConfigService.ts +++ b/packages/core/src/internal/config/service/DefaultConfigService.ts @@ -15,7 +15,7 @@ export class DefaultConfigService implements ConfigService { private _remote: RemoteConfigDataSource; constructor( @inject(types.LocalConfigDataSource) local: LocalConfigDataSource, - @inject(types.RemoteConfigDataSource) remote: RemoteConfigDataSource + @inject(types.RemoteConfigDataSource) remote: RemoteConfigDataSource, ) { this._local = local; this._remote = remote; diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 9eba77295..0631edecd 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -5,7 +5,7 @@ "baseUrl": ".", "paths": { "@internal/*": ["src/internal/*"], - "@root/*": ["./*"], + "@root/*": ["./*"] } }, "include": ["src", "index.ts", "jest.*.ts"] diff --git a/packages/signer/tsconfig.json b/packages/signer/tsconfig.json index 7de4b7b54..52d8bbf1d 100644 --- a/packages/signer/tsconfig.json +++ b/packages/signer/tsconfig.json @@ -3,5 +3,5 @@ "compilerOptions": { "outDir": "./lib" }, - "include": ["src/**/*", "jest.config.ts"], + "include": ["src/**/*", "jest.config.ts"] } From 8b3f1bc9415ad4c9cb77714aa95f445d80f5e951 Mon Sep 17 00:00:00 2001 From: Louis Aussedat Date: Thu, 8 Feb 2024 12:04:59 +0100 Subject: [PATCH 3/3] chore: add prettier check in github workflows --- .github/workflows/pull_request.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9e73bee5a..43e8d4726 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -13,6 +13,18 @@ jobs: - name: Lint run: pnpm lint + prettier: + runs-on: [device-sdk-4xlarge-linux] + env: + CI_JOB_NUMBER: 1 + steps: + - uses: actions/checkout@v3 + + - uses: ./actions/setup-toolchain-composite + + - name: Prettier + run: pnpm prettier + test: runs-on: [device-sdk-4xlarge-linux] env: