From fad65869db9d8e62ad1fee2b8dd128a7baff600c Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Mon, 6 May 2024 07:54:52 +0900 Subject: [PATCH] Check formatting in CI Signed-off-by: Sora Morimoto --- .github/workflows/main.yml | 3 +++ package.json | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 63f453d0..01677f14 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,5 +21,8 @@ jobs: - name: Install dependencies run: yarn install --immutable + - name: Check formatting + run: yarn format:check + - name: Run the tests run: yarn test-all diff --git a/package.json b/package.json index 5a7d4af2..90b41aa6 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,8 @@ "cli:help": "node index.js -h", "cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts", "cli:yaml": "node index.js -r -d -p ./swagger-test-cli.yaml -n swagger-test-cli.ts", + "format": "biome format --write .", + "format:check": "biome format .", "generate": "node tests/generate.js", "generate-extended": "node tests/generate-extended.js", "node": "node swagger-test-cli/generate.js",