diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f38c724a0..8ddcfa332 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,17 +1,7 @@ -name: Build - -run-name: OpenPLC CI pipeline - Build test +name: Complete Build on: - push: - branches: - - main - - development - pull_request: - # The branches below must be a subset of the branches above - branches: - - main - - development + workflow_call: jobs: build: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/ci-architecture.yml b/.github/workflows/ci-architecture.yml index a2b4c7d1f..68e285bd2 100644 --- a/.github/workflows/ci-architecture.yml +++ b/.github/workflows/ci-architecture.yml @@ -1,11 +1,7 @@ name: CI - Architecture on: - pull_request: - branches: - - main - - development - - refactor/shared-ui-migration + workflow_call: jobs: architecture: diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 040cd1965..0ba976c09 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -1,11 +1,7 @@ name: CI - Build on: - pull_request: - branches: - - main - - development - - refactor/shared-ui-migration + workflow_call: jobs: build: diff --git a/.github/workflows/ci-format.yml b/.github/workflows/ci-format.yml index fe35b3b84..aa5f4d3d6 100644 --- a/.github/workflows/ci-format.yml +++ b/.github/workflows/ci-format.yml @@ -1,11 +1,7 @@ name: CI - Format on: - pull_request: - branches: - - main - - development - - refactor/shared-ui-migration + workflow_call: jobs: format: diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index 3e792f995..90a807b9b 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -1,11 +1,7 @@ name: CI - Lint on: - pull_request: - branches: - - main - - development - - refactor/shared-ui-migration + workflow_call: jobs: lint: diff --git a/.github/workflows/ci-sync.yml b/.github/workflows/ci-sync.yml index bea7a04f8..4a6ee2125 100644 --- a/.github/workflows/ci-sync.yml +++ b/.github/workflows/ci-sync.yml @@ -1,10 +1,7 @@ name: CI - Cross-Repo Sync on: - pull_request: - branches: - - main - - development + workflow_call: jobs: surface-sync: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..1fc269fd4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + pull_request: + branches: + - main + - development + +jobs: + architecture: + uses: ./.github/workflows/ci-architecture.yml + + build-check: + uses: ./.github/workflows/ci-build.yml + + lint: + uses: ./.github/workflows/ci-lint.yml + + format: + needs: [architecture, build-check, lint] + uses: ./.github/workflows/ci-format.yml + + sync: + needs: [format] + uses: ./.github/workflows/ci-sync.yml + secrets: inherit + + complete-build: + needs: [sync] + uses: ./.github/workflows/build.yml diff --git a/.github/workflows/claude-code-review.yml b/.github/workflows/claude-code-review.yml index b5e8cfd4d..83dea72bd 100644 --- a/.github/workflows/claude-code-review.yml +++ b/.github/workflows/claude-code-review.yml @@ -1,14 +1,7 @@ name: Claude Code Review on: - pull_request: - types: [opened, synchronize, ready_for_review, reopened] - # Optional: Only run on specific file changes - # paths: - # - "src/**/*.ts" - # - "src/**/*.tsx" - # - "src/**/*.js" - # - "src/**/*.jsx" + workflow_call: jobs: claude-review: diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index e052138bf..afff0da11 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -1,17 +1,7 @@ -name: Code quality - -run-name: OpenPLC CI pipeline - Code quality +name: Code Quality on: - push: - branches: - - main - - development - pull_request: - # The branches below must be a subset of the branches above - branches: - - main - - development + workflow_call: jobs: quality: runs-on: ubuntu-latest