From f5ddca00df04f546232873d52c514c4b815f28ea Mon Sep 17 00:00:00 2001 From: Nicolas Paul Date: Tue, 5 Mar 2024 11:27:34 +0100 Subject: Fix Clang-Format command in NPM Scripts The previous command was not finding the files to format, making Clang-Format always fail in CI even tho everything was correct. Signed-off-by: Nicolas Paul --- .github/workflows/js_style.yml | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/js_style.yml b/.github/workflows/js_style.yml index 6e74bcf..f3c2de7 100644 --- a/.github/workflows/js_style.yml +++ b/.github/workflows/js_style.yml @@ -16,7 +16,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: node-version: ${{ env.NODE_VERSION }} cache: "npm" diff --git a/package.json b/package.json index 9d570c1..937148b 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "scripts": { "lint": "eslint .", "lint:fix": "eslint --fix .", - "fmt": "clang-format --dry-run -i *.cjs *.js", - "fmt:fix": "clang-format -i *.cjs *.js", + "fmt": "clang-format --dry-run life2/simulator/src/*.js", + "fmt:fix": "clang-format -i life2/simulator/src/*.js", "test": "echo \"Error: no test specified\" && exit 1" }, "devDependencies": { -- cgit v1.2.3