Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd61a6fa

Browse files
committed
Update CLI config test to account for overlay db changes on PRs
1 parentf0ac9bf commitd61a6fa

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

‎.github/workflows/codescanning-config-cli.yml‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,33 @@ jobs:
7070
with:
7171
version:${{ matrix.version }}
7272

73-
-name:Empty file
73+
# On PRs, overlay analysis may change the config that is passed to the CLI.
74+
# Therefore, we have two variants of the following test, one for PRs and one for other events.
75+
-name:Empty file (non-PR)
76+
if:github.event_name != 'pull_request'
7477
uses:./../action/.github/actions/check-codescanning-config
7578
with:
7679
expected-config-file-contents:"{}"
7780
languages:javascript
7881
tools:${{ steps.prepare-test.outputs.tools-url }}
7982

83+
-name:Empty file (PR)
84+
if:github.event_name == 'pull_request'
85+
uses:./../action/.github/actions/check-codescanning-config
86+
with:
87+
expected-config-file-contents:|
88+
{
89+
"query-filters": [
90+
{
91+
"exclude": {
92+
"tags": "exclude-from-incremental"
93+
}
94+
}
95+
]
96+
}
97+
languages:javascript
98+
tools:${{ steps.prepare-test.outputs.tools-url }}
99+
80100
-name:Packs from input
81101
if:success() || failure()
82102
uses:./../action/.github/actions/check-codescanning-config

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp