Skip to content

Commit a2210c9

Browse files
committed
format ubuntu only
1 parent 9293c6b commit a2210c9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/pr.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151

5252
- run: yarn --frozen-lockfile
5353

54+
- run: yarn format:check
55+
if: ${{ matrix.os == 'ubuntu-latest' }}
56+
5457
- run: yarn build
5558

5659
- run: yarn checkchange --verbose
@@ -115,6 +118,7 @@ jobs:
115118
- name: Format
116119
run: cargo fmt --check
117120
working-directory: ./rust
121+
if: ${{ matrix.os == 'ubuntu-latest' }}
118122

119123
- name: Lint
120124
run: cargo clippy --all-targets -- -D warnings
@@ -151,6 +155,7 @@ jobs:
151155
run: test -z "$(gofmt -l .)"
152156
shell: bash
153157
working-directory: ./go
158+
if: ${{ matrix.os == 'ubuntu-latest' }}
154159

155160
- name: Lint
156161
run: go vet ./...

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"checkchange": "node ./lib/cli.js check",
2929
"docs": "echo \"Run this from the docs folder instead\" && exit 1",
3030
"docs:build": "echo \"Run this from the docs folder instead\" && exit 1",
31-
"format": "prettier --write '**/*'",
31+
"format": "prettier --write .",
32+
"format:check": "prettier --check .",
3233
"prepare": "husky install",
3334
"lint": "yarn lint:deps && yarn lint:code",
3435
"lint:code": "eslint --color --max-warnings=0 src",

0 commit comments

Comments
 (0)