Skip to content

Commit 0fcd315

Browse files
authored
Merge pull request #21 from morpho-labs/ci/formatter
Add formatting in CI
2 parents ee391d1 + ecc618b commit 0fcd315

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/formatting.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Formatting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
env:
10+
FOUNDRY_PROFILE: ci
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Install Foundry
19+
uses: foundry-rs/foundry-toolchain@v1
20+
21+
- name: Run Linter
22+
run: forge fmt --check

.github/workflows/test.yml renamed to .github/workflows/foundry.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
name: test
1+
name: Foundry
22

3-
on: push
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
48

59
env:
610
FOUNDRY_PROFILE: ci
711

812
jobs:
913
check:
10-
name: Foundry project
14+
name: forge-test
1115
runs-on: ubuntu-latest
1216
steps:
1317
- name: Generate a token

0 commit comments

Comments
 (0)