Skip to content

Commit

Permalink
Add a format check to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
greenscientist authored and kaligrafy committed Dec 17, 2024
1 parent da886f7 commit 80b6fa0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/transition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,27 @@ jobs:
- name: Lint
run: yarn lint

check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use latest Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Install
run: yarn install --frozen-lockfile
- name: Yarn format
run: yarn format
- name: Check git status
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "Code formatting issues found. Please run 'yarn format' locally and commit changes."
git status
git diff
exit 1
fi
cargo-test:
name: Json2capnp
runs-on: ubuntu-latest
Expand Down

0 comments on commit 80b6fa0

Please sign in to comment.