-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: added linter of the formatting with prettier (#19)
* ci: added linter of the formatting with prettier * chore: added prettier ignore config
- Loading branch information
1 parent
e2203ba
commit 49474f3
Showing
6 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Prettier Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "latest" | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run Prettier | ||
run: npm run prettier:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/target | ||
/Cargo.lock | ||
.idea/ | ||
.idea/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# We use cargo fmt for rust-related files. | ||
src/ | ||
tests/ | ||
Cargo.toml | ||
Cargo.lock | ||
*.rs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "bpcon", | ||
"description": "Generic Rust library for BPCon (Byzantine Paxos).", | ||
"scripts": { | ||
"prettier:fix": "prettier --cache --write .", | ||
"prettier:check": "prettier --cache --check ." | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/distributed-lab/bpcon" | ||
}, | ||
"keywords": [ | ||
"Rust", | ||
"BPCon", | ||
"DistributedLab" | ||
], | ||
"author": "DistributedLab", | ||
"bugs": { | ||
"url": "https://github.com/distributed-lab/bpcon/issues" | ||
}, | ||
"homepage": "https://github.com/distributed-lab/bpcon#readme", | ||
"devDependencies": { | ||
"prettier": "^3.3.3" | ||
} | ||
} |