Skip to content

Commit fa520e2

Browse files
Separate step for formatting
1 parent f8e018f commit fa520e2

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,27 @@ on:
1212
jobs:
1313
checks:
1414
uses: Workiva/gha-dart-oss/.github/workflows/checks.yaml@v0.1.7
15+
with:
16+
format-check: false
1517

1618
build:
1719
uses: Workiva/gha-dart-oss/.github/workflows/build.yaml@v0.1.7
1820

21+
format:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: dart-lang/setup-dart@v1
26+
with:
27+
sdk: 2.19.6
28+
29+
- name: Check formatting
30+
run: dart format . -l 120 --set-exit-if-changed
31+
if: ${{ always() && steps.install.outcome == 'success' }}
32+
1933
test-unit:
2034
runs-on: ubuntu-latest
21-
name: ${{ matrix.release-mode && 'release' || 'dev' }}
35+
name: unit tests (${{ matrix.release-mode && 'release' || 'dev' }})
2236
strategy:
2337
fail-fast: false
2438
matrix:

0 commit comments

Comments
 (0)