Skip to content

Commit b304b61

Browse files
committed
ci(workflows): [ci] use dprint/check action
https://github.com/dprint/check/tree/v2.3 Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 16f438e commit b304b61

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# - https://github.com/andstor/file-existence-action
2323
# - https://github.com/codecov/codecov-action
2424
# - https://github.com/codecov/test-results-action
25+
# - https://github.com/dprint/check
2526
# - https://github.com/flex-development/grease
2627
# - https://github.com/hmarr/debug-action
2728
# - https://github.com/streetsidesoftware/cspell-action
@@ -171,9 +172,16 @@ jobs:
171172
with:
172173
key: ${{ needs.preflight.outputs.cache-key }}
173174
path: ${{ env.CACHE_PATH }}
174-
- id: format
175-
name: Check code formatting
176-
run: yarn check:format
175+
- id: version
176+
name: Get dprint version
177+
run: echo "result=$(jq .devDependencies.dprint package.json -r)" >>$GITHUB_OUTPUT
178+
- id: check
179+
name: Check formatting
180+
uses: dprint/[email protected]
181+
with:
182+
args: --config-discovery=false --incremental=false --log-level=info
183+
config-path: .dprint.jsonc
184+
dprint-version: ${{ steps.version.outputs.result }}
177185
lint:
178186
needs:
179187
- commitlint

0 commit comments

Comments
 (0)