Skip to content

Commit

Permalink
ci: add formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinEgalite committed Oct 12, 2023
1 parent bc39f3f commit 47a7466
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Formatting

on: push

env:
FOUNDRY_PROFILE: ci

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Run Linter
run: forge fmt --check
9 changes: 1 addition & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: Test

on: push

Expand All @@ -10,13 +10,6 @@ jobs:
name: Foundry project
runs-on: ubuntu-latest
steps:
- name: Generate a token
id: generate-token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 47a7466

Please sign in to comment.