Skip to content

Commit 206c20d

Browse files
gmpassoshaarts
authored andcommitted
Force dartfmt exitcode to 1 on issues
1 parent 51eb160 commit 206c20d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/dart.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
- uses: actions/checkout@v2
1919
- name: Install dependencies
2020
run: pub get
21-
- name: Run tests
22-
run: pub run test
2321
- name: Format code
24-
run: dartfmt
22+
run: dartfmt -n --set-exit-if-changed .
2523
- name: Static analyze project
26-
run: dartanalyzer . --options=analysis_options.yaml --fatal-infos
24+
run: dartanalyzer --fatal-infos --fatal-warnings .
25+
- name: Run tests
26+
run: pub run test

0 commit comments

Comments
 (0)