Skip to content

Commit

Permalink
chore(ci): run forge fmt in lint workflow (#742)
Browse files Browse the repository at this point in the history
* use `forge fmt` in lint workflow

* remove recursive flag

* style: resolve style guide violations

---------

Co-authored-by: oXtxNt9U <[email protected]>
  • Loading branch information
oXtxNt9U and oXtxNt9U authored Oct 29, 2024
1 parent cb39f1c commit abaeec9
Show file tree
Hide file tree
Showing 12 changed files with 888 additions and 878 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-pnpm-

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install dependencies
run: pnpm install

Expand All @@ -56,6 +61,11 @@ jobs:
- name: Prettier
run: pnpm run prettier

- name: Forge Format
working-directory: contracts
run: |
forge fmt
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: resolve style guide violations"
Loading

0 comments on commit abaeec9

Please sign in to comment.