Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fix Clang-Format command in NPM Scripts
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ncs-pl committed Mar 5, 2024
1 parent 2ae4823 commit f5ddca0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/js_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit f5ddca0

Please sign in to comment.