From e3af671e975b2cc7a25bc39e001443816474e8dc Mon Sep 17 00:00:00 2001 From: Yang Jiao Date: Thu, 20 Apr 2023 07:12:19 +0000 Subject: [PATCH 1/2] Handling skipped but required checks 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 c0be1ce66d5..e22087a2220 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 819dff67bd6..50541245057 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 00000000000..86effa223c1 --- /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 00000000000..7dce06a32d8 --- /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"' From 0fa3d83222ca7e4d98bb6731451fd0034fcfb67b Mon Sep 17 00:00:00 2001 From: Yang Jiao <72076317+YangJiao0817@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:27:12 +0800 Subject: [PATCH 2/2] Update ui_ut_run.sh --- tests/ci/ui_ut_run.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/ci/ui_ut_run.sh b/tests/ci/ui_ut_run.sh index 1a1ff395c65..03b02880d1a 100755 --- a/tests/ci/ui_ut_run.sh +++ b/tests/ci/ui_ut_run.sh @@ -5,7 +5,6 @@ set -e cd ./src/portal npm install -g -q --no-progress @angular/cli npm install -g -q --no-progress karma -npm install -q --no-progress # check code lint first then run ut test npm run lint npm run lint:style