Skip to content

Commit

Permalink
ci: run dprint fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
evmar committed Feb 18, 2025
1 parent 7989f59 commit 53ec691
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Check formatting of toml/md files using dprint.
# Rust format checking is done in the CI workflow.

name: fmt

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Cache dprint
uses: actions/cache@v4
with:
path: |
~/.dprint
~/.cache/dprint
key: dprint

- name: Install dprint
run: |
if [ ! -f $HOME/.dprint/bin/dprint ]; then
curl -fsSL https://dprint.dev/install.sh | sh
fi
echo $HOME/.dprint/bin >> $GITHUB_PATH
- run: dprint check

0 comments on commit 53ec691

Please sign in to comment.