From a77662aaae6ed31f9cb41de12f15d21312206e72 Mon Sep 17 00:00:00 2001 From: Ankitsinghsisodya Date: Wed, 22 Apr 2026 20:45:30 +0530 Subject: [PATCH 1/4] ci: skip functions workflow on doc-only changes Add paths-ignore to push and pull_request triggers to avoid running the full CI suite (unit, template, integration, e2e) when only documentation or non-code files are modified. --- .github/workflows/functions.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/functions.yaml b/.github/workflows/functions.yaml index 7d809102e8..2db8ec1fbe 100644 --- a/.github/workflows/functions.yaml +++ b/.github/workflows/functions.yaml @@ -12,9 +12,19 @@ on: push: branches: - main + paths-ignore: + - 'docs/**' + - '**/*.md' + - 'CODEOWNERS' + - 'LICENSE' pull_request: branches: - main + paths-ignore: + - 'docs/**' + - '**/*.md' + - 'CODEOWNERS' + - 'LICENSE' workflow_dispatch: concurrency: From 22ad8b988f2e3f6d466033d1968e44067ddbc274 Mon Sep 17 00:00:00 2001 From: Ankitsinghsisodya Date: Wed, 22 Apr 2026 23:19:19 +0530 Subject: [PATCH 2/4] ci: tighten Functions workflow paths-ignore Use root-only *.md instead of **/*.md so template and testdata markdown still trigger CI. Replace CODEOWNERS with OWNERS and OWNERS_ALIASES to match repo ownership files. --- .github/workflows/functions.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/functions.yaml b/.github/workflows/functions.yaml index 2db8ec1fbe..95e8e34c5c 100644 --- a/.github/workflows/functions.yaml +++ b/.github/workflows/functions.yaml @@ -14,16 +14,18 @@ on: - main paths-ignore: - 'docs/**' - - '**/*.md' - - 'CODEOWNERS' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' - 'LICENSE' pull_request: branches: - main paths-ignore: - 'docs/**' - - '**/*.md' - - 'CODEOWNERS' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' - 'LICENSE' workflow_dispatch: From 2292c8844d1fd609d0975f1f2f2d13eb75f1e456 Mon Sep 17 00:00:00 2001 From: Ankitsinghsisodya Date: Thu, 30 Apr 2026 00:56:18 +0530 Subject: [PATCH 3/4] ci: add CI check workflow for code quality and linting Introduce a new GitHub Actions workflow to perform prechecks on code changes, including linting and schema validation. This workflow triggers on pushes and pull requests to the main branch. --- .github/workflows/ci-check.yaml | 31 +++++++++++++++++++++++++++++++ .github/workflows/functions.yaml | 4 ++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci-check.yaml diff --git a/.github/workflows/ci-check.yaml b/.github/workflows/ci-check.yaml new file mode 100644 index 0000000000..ab92eb23b7 --- /dev/null +++ b/.github/workflows/ci-check.yaml @@ -0,0 +1,31 @@ +name: Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + precheck: + name: Precheck + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - uses: knative/actions/setup-go@main + + - name: Check and Lint + run: make check + - name: Check Generated Schema File + run: make check-schema + - name: Check Templates + run: make check-templates + - name: Check Embedded FS + run: make check-embedded-fs diff --git a/.github/workflows/functions.yaml b/.github/workflows/functions.yaml index 95e8e34c5c..76ab28c078 100644 --- a/.github/workflows/functions.yaml +++ b/.github/workflows/functions.yaml @@ -13,7 +13,7 @@ on: branches: - main paths-ignore: - - 'docs/**' + - 'docs/**/*.md' - '*.md' - 'OWNERS' - 'OWNERS_ALIASES' @@ -22,7 +22,7 @@ on: branches: - main paths-ignore: - - 'docs/**' + - 'docs/**/*.md' - '*.md' - 'OWNERS' - 'OWNERS_ALIASES' From 540d31f784eb8596a270cb04873858ff90673905 Mon Sep 17 00:00:00 2001 From: Ankitsinghsisodya Date: Thu, 21 May 2026 20:45:54 +0530 Subject: [PATCH 4/4] ci: update CI workflow to ignore documentation and ownership files Enhance the CI check workflow by adding paths-ignore for documentation markdown files and ownership files in both push and pull request triggers. This change prevents unnecessary CI runs when only non-code files are modified, streamlining the workflow. --- .github/workflows/ci-check.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci-check.yaml b/.github/workflows/ci-check.yaml index ab92eb23b7..ec9ec4aa49 100644 --- a/.github/workflows/ci-check.yaml +++ b/.github/workflows/ci-check.yaml @@ -4,9 +4,24 @@ on: push: branches: - main + paths-ignore: + - 'docs/**/*.md' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' + - 'LICENSE' pull_request: branches: - main + paths-ignore: + - 'docs/**/*.md' + - '*.md' + - 'OWNERS' + - 'OWNERS_ALIASES' + - 'LICENSE' + +permissions: + contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }}