Skip to content

Commit 8fdbc43

Browse files
authored
Merge pull request #62 from influxdata/chore/ci-prettier-check
ci: add prettier format check
2 parents 1b45832 + 1f30cbf commit 8fdbc43

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ jobs:
3636
fi
3737
echo "All versions match: $PKG_VERSION"
3838
39+
format-check:
40+
name: Format check
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
44+
with:
45+
persist-credentials: false
46+
47+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
48+
with:
49+
node-version: "22"
50+
cache: "npm"
51+
52+
- run: npm ci
53+
- run: npm run format:check
54+
3955
test-protocol:
4056
name: Protocol tests
4157
runs-on: ubuntu-latest

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
build/
2+
node_modules/
3+
package-lock.json

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"clean": "rm -rf build",
2323
"lint": "eslint . --ext .ts,.js",
2424
"format": "prettier --write .",
25+
"format:check": "prettier --check .",
2526
"prepublishOnly": "npm run clean && npm run build",
2627
"pretest": "npm run build",
2728
"test": "vitest run",

0 commit comments

Comments
 (0)