diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..cebc0323 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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" diff --git a/.github/workflows/forge-build.yaml b/.github/workflows/forge-build.yaml index 119a6379..91c32573 100644 --- a/.github/workflows/forge-build.yaml +++ b/.github/workflows/forge-build.yaml @@ -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: