Skip to content

Commit e02d8b4

Browse files
committed
Check for dartdoc warnings in GitHub Actions
1 parent 9f3133a commit e02d8b4

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,23 @@ jobs:
127127
- name: Analyze dart
128128
run: dartanalyzer --fatal-warnings --fatal-infos lib tool test
129129

130+
dartdoc:
131+
name: Dartdoc
132+
runs-on: ubuntu-latest
133+
134+
steps:
135+
- uses: actions/checkout@v2
136+
- uses: dart-lang/setup-dart@v1
137+
- run: dart pub get
138+
- name: Run dartdoc
139+
run: dartdoc --quiet --no-generate-docs
140+
--errors ambiguous-doc-reference,broken-link,deprecated
141+
--errors unknown-directive,unknown-macro,unresolved-doc-reference
142+
130143
sanity_checks:
131144
name: Sanity checks
132145
runs-on: ubuntu-latest
133-
needs: [sass_spec, dart_tests, node_tests, static_analysis]
146+
needs: [sass_spec, dart_tests, node_tests, static_analysis, dartdoc]
134147
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
135148

136149
steps:

0 commit comments

Comments
 (0)