summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Paul <n@nc0.fr>2024-03-05 11:27:34 +0100
committerNicolas Paul <n@nc0.fr>2024-03-05 11:27:34 +0100
commitf5ddca00df04f546232873d52c514c4b815f28ea (patch)
treeaabba9bdc0741713e7321b33db2f7b7536fac923
parent2ae4823e6db5c484bbf54e7aa4a90c83be7d65d9 (diff)
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 <n@nc0.fr>
-rw-r--r--.github/workflows/js_style.yml2
-rw-r--r--package.json4
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": {