From 808e41866dc8753ab8d684927f4b8f7a69a66522 Mon Sep 17 00:00:00 2001 From: zeroknots Date: Fri, 16 Feb 2024 13:45:00 +0700 Subject: [PATCH] adding linting to submodules --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2d3e91b8..4a7387b5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,20 +18,38 @@ jobs: match-path: "test/**/*.sol" name: "Unit tests" - workspace-safe7579: - needs: ["build"] + lint-safe7579: + needs: ["lint", "test-unit"] + uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-lint-workspaces.yaml@main" + with: + match-workspace: "@rhinestone/safe7579" + + test-safe7579: + needs: ["build", "test-unit"] uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test-workspaces.yaml@main" with: match-workspace: "@rhinestone/safe7579" - workspace-sessionkeymanager: - needs: ["build"] + lint-sessionkeymanager: + needs: ["lint", "test-unit"] + uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-lint-workspaces.yaml@main" + with: + match-workspace: "@rhinestone/sessionkeymanager" + + test-sessionkeymanager: + needs: ["build", "test-unit"] uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test-workspaces.yaml@main" with: match-workspace: "@rhinestone/sessionkeymanager" - workspace-examples: - needs: ["build"] + lint-modulekit-examples: + needs: ["lint", "test-unit"] + uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-lint-workspaces.yaml@main" + with: + match-workspace: "@rhinestone/modulekit-examples" + + test-modulekit-examples: + needs: ["build", "test-unit"] uses: "rhinestonewtf/reusable-workflows/.github/workflows/forge-test-workspaces.yaml@main" with: match-workspace: "@rhinestone/modulekit-examples"