From 9ba18f8fe67df612dc31a981f77f73ca71c3218a Mon Sep 17 00:00:00 2001 From: Yang Jiao <72076317+YangJiao0817@users.noreply.github.com> Date: Thu, 20 Apr 2023 16:33:37 +0800 Subject: [PATCH] Handling skipped but required checks (#18564) Signed-off-by: Yang Jiao --- .github/workflows/CI.yml | 8 +++++++ .github/workflows/codeql-analysis.yml | 10 ++++++++- .github/workflows/pass-CI.yml | 25 ++++++++++++++++++++++ .github/workflows/pass-codeql-analysis.yml | 25 ++++++++++++++++++++++ 4 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pass-CI.yml create mode 100644 .github/workflows/pass-codeql-analysis.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c0be1ce66..e22087a22 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -19,10 +19,18 @@ on: paths-ignore: - 'docs/**' - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' push: paths-ignore: - 'docs/**' - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' jobs: UTTEST: diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 819dff67b..505412450 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -5,10 +5,18 @@ on: paths-ignore: - 'docs/**' - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' pull_request: paths-ignore: - 'docs/**' - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' schedule: - cron: '0 16 * * 6' @@ -29,7 +37,7 @@ jobs: # the head of the pull request instead of the merge commit. - run: git checkout HEAD^2 if: ${{ github.event_name == 'pull_request' }} - + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.github/workflows/pass-CI.yml b/.github/workflows/pass-CI.yml new file mode 100644 index 000000000..86effa223 --- /dev/null +++ b/.github/workflows/pass-CI.yml @@ -0,0 +1,25 @@ +name: CI + +on: + pull_request: + paths: + - 'docs/**' + - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' + push: + paths: + - 'docs/**' + - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - run: 'echo "No build required"' diff --git a/.github/workflows/pass-codeql-analysis.yml b/.github/workflows/pass-codeql-analysis.yml new file mode 100644 index 000000000..7dce06a32 --- /dev/null +++ b/.github/workflows/pass-codeql-analysis.yml @@ -0,0 +1,25 @@ +name: "Code scanning - action" + +on: + push: + paths: + - 'docs/**' + - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' + pull_request: + paths: + - 'docs/**' + - '**.md' + - 'tests/**' + - '!tests/**.sh' + - '!tests/apitests/**' + - '!tests/ci/**' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - run: 'echo "No build required"'