Skip to content

Commit

Permalink
feat: updated github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefMist committed Oct 10, 2024
1 parent c2941bb commit c807a6d
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Lint

on:
push:
branches:
- main
pull_request:

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

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

- name: Run lint
run: forge fmt --check
40 changes: 10 additions & 30 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,25 @@
name: CI
name: Tests

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

env:
FOUNDRY_PROFILE: ci

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
forge-tests:
name: Forge Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3
with:
submodules: recursive

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

- name: Show Forge version
run: |
forge --version
- name: Run Forge fmt
run: |
forge fmt --check
id: fmt

- name: Run Forge build
run: |
forge build --sizes
id: build
version: nightly-471e4ac317858b3419faaee58ade30c0671021e0 # Nightly (2024-10-03)

- name: Run Forge tests
run: |
forge test -vvv
id: test
- name: Run tests
run: forge test -vvv --isolate

0 comments on commit c807a6d

Please sign in to comment.