Skip to content

Commit

Permalink
add formatter to CI + makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Aug 26, 2024
1 parent 02a8105 commit ad2bda2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ jobs:
cd /repo/contracts &&\
cargo check &&\
cargo clippy -- -D warnings"
# - run: cargo check
# - run: cargo clippy -- -D warnings
- name: format
run: |
yarn install --frozen-lockfile
cd ../ # back to root
make format-contracts
git diff --stat --exit-code
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,7 @@ upgrade-e2e-solana-image:
.PHONY: update-e2e-core-deps
upgrade-e2e-core-deps:
cd ./integration-tests && ../scripts/update-e2e.sh

.PHONY: format-contracts
format-contracts:
cd ./contracts && cargo fmt && go fmt ./... && yarn format

0 comments on commit ad2bda2

Please sign in to comment.