Skip to content

Commit d8c81a0

Browse files
codebytesCopilot
andcommitted
Fix dotnet test config mismatch and tune super-linter
- Add --configuration Release to dotnet test step to match the build configuration, fixing the test runner failure - Set VALIDATE_ALL_CODEBASE=false to only lint changed files - Disable redundant Prettier linters and noisy linters not useful for a demo repo (Checkov, Trivy, JSCPD, Biome, natural language) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ff81f29 commit d8c81a0

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/10-dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Build
4343
run: dotnet build --no-restore
4444
- name: Test
45-
run: dotnet test --no-build --verbosity normal
45+
run: dotnet test --configuration Release --no-build --verbosity normal
4646

4747
- name: dotnet publish
4848
run: dotnet publish src/dotnet-sample.csproj -c Release -o ./webapp

.github/workflows/super-linter.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,19 @@ jobs:
3636
env:
3737
# To report GitHub Actions status checks
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
# Only lint changed files, not the entire codebase
40+
VALIDATE_ALL_CODEBASE: 'false'
41+
# Disable redundant Prettier linters (formatting-only, not catching bugs)
42+
VALIDATE_CSS_PRETTIER: 'false'
43+
VALIDATE_HTML_PRETTIER: 'false'
44+
VALIDATE_JAVASCRIPT_PRETTIER: 'false'
45+
VALIDATE_JSON_PRETTIER: 'false'
46+
VALIDATE_MARKDOWN_PRETTIER: 'false'
47+
VALIDATE_YAML_PRETTIER: 'false'
48+
# Disable linters not useful for a demo repo
49+
VALIDATE_NATURAL_LANGUAGE: 'false'
50+
VALIDATE_JSCPD: 'false'
51+
VALIDATE_BIOME_FORMAT: 'false'
52+
VALIDATE_BIOME_LINT: 'false'
53+
VALIDATE_CHECKOV: 'false'
54+
VALIDATE_TRIVY: 'false'

0 commit comments

Comments
 (0)