only report linter warnings once
This commit is contained in:
parent
83eb9c5c2e
commit
e3604d6ce6
|
@ -62,6 +62,8 @@ jobs:
|
||||||
dmd: gdc-12
|
dmd: gdc-12
|
||||||
build:
|
build:
|
||||||
type: dub
|
type: dub
|
||||||
|
include:
|
||||||
|
- { do_report: 1, build: { type: dub, version: 'current' }, host: 'ubuntu-22.04', compiler: { version: dmd-latest, dmd: dmd } }
|
||||||
|
|
||||||
runs-on: ${{ matrix.host }}
|
runs-on: ${{ matrix.host }}
|
||||||
|
|
||||||
|
@ -129,13 +131,20 @@ jobs:
|
||||||
# Lint source code using the previously built binary
|
# Lint source code using the previously built binary
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
shell: bash
|
shell: bash
|
||||||
|
env:
|
||||||
|
REPORT_GITHUB: ${{matrix.do_report}}
|
||||||
run: |
|
run: |
|
||||||
if [ "$RUNNER_OS" == "Windows" ]; then
|
if [ "$RUNNER_OS" == "Windows" ]; then
|
||||||
EXE=".exe"
|
EXE=".exe"
|
||||||
else
|
else
|
||||||
EXE=""
|
EXE=""
|
||||||
fi
|
fi
|
||||||
"./bin/dscanner$EXE" --config .dscanner.ini --styleCheck -f github src
|
if [ "$REPORT_GITHUB" == "1" ]; then
|
||||||
|
FORMAT="github"
|
||||||
|
else
|
||||||
|
FORMAT=""
|
||||||
|
fi
|
||||||
|
"./bin/dscanner$EXE" --config .dscanner.ini --styleCheck -f "$FORMAT" src
|
||||||
|
|
||||||
# Parse phobos to check for failures / crashes / ...
|
# Parse phobos to check for failures / crashes / ...
|
||||||
- name: Checkout Phobos
|
- name: Checkout Phobos
|
||||||
|
|
Loading…
Reference in New Issue