Skip to content

Commit

Permalink
Merge pull request #42 from Lagrange-Labs/ci-test-on-new-pr
Browse files Browse the repository at this point in the history
Add CI / update to run on all new PRs
  • Loading branch information
RyanRHall authored Nov 11, 2024
2 parents cb8c8fa + 973e377 commit 61e55b4
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: fmt

on: push

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry Format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

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

- name: Run Forge fmt
run: forge fmt --check
id: fmt
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: test

on: workflow_dispatch
on: push

env:
FOUNDRY_PROFILE: ci
Expand All @@ -10,8 +10,8 @@ jobs:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubuntu-latest
name: Foundry Tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 61e55b4

Please sign in to comment.