Skip to content

Commit

Permalink
feat: reusable ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroknots committed Feb 16, 2024
1 parent 89e37de commit c2c5892
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
- push
- pull_request

jobs:
lint:
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-lint.yaml@main"

build:
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-build.yaml@main"

test-unit:
needs: ["lint", "build"]
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-test.yml@main"
with:
foundry-fuzz-runs: 5000
foundry-profile: "test-optimized"
match-path: "test/**/*.sol"
name: "Unit tests"
22 changes: 20 additions & 2 deletions .github/workflows/forge-build.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
name: "Build a Forge project"

on:
- push
- pull_request
workflow_call:
inputs:
cache-path:
default: |
cache
node_modules
out
out-optimized
required: false
type: "string"

save-cache:
default: true
required: false
type: boolean

store-artifacts:
default: true
required: false
type: boolean

jobs:
forge-build:
Expand Down

0 comments on commit c2c5892

Please sign in to comment.