From 47a74662176f9d09ff0da0ec50341bba6cc7d9ee Mon Sep 17 00:00:00 2001 From: MerlinEgalite Date: Thu, 12 Oct 2023 12:52:48 +0200 Subject: [PATCH] ci: add formatter --- .github/workflows/formatting.yml | 18 ++++++++++++++++++ .github/workflows/test.yml | 9 +-------- 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/formatting.yml diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..23e6180 --- /dev/null +++ b/.github/workflows/formatting.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52dd99b..0976d8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: test +name: Test on: push @@ -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: