Skip to content

Commit

Permalink
feat: reusable ci
Browse files Browse the repository at this point in the history
chore: updating ci for testing

update rec

del

chore: add workspaces tests

dafuq

order

deps

depend submodule on unittest
  • Loading branch information
zeroknots committed Feb 16, 2024
1 parent 89e37de commit e6ac79d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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: ["build"]
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test.yaml@main"
with:
foundry-fuzz-runs: 5000
foundry-profile: "test"
match-path: "test/**/*.sol"
name: "Unit tests"

test-pnpm-workspaces:
needs: ["build", "test-unit"]
uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test-workspaces.yaml@main"
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 e6ac79d

Please sign in to comment.