From e02d8b4794a94cb500f97dd82890cf6972c729e4 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Fri, 30 Jul 2021 15:25:08 -0700 Subject: [PATCH] Check for dartdoc warnings in GitHub Actions --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de980bfc5..b0d54914f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,10 +127,23 @@ jobs: - name: Analyze dart run: dartanalyzer --fatal-warnings --fatal-infos lib tool test + dartdoc: + name: Dartdoc + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: dart-lang/setup-dart@v1 + - run: dart pub get + - name: Run dartdoc + run: dartdoc --quiet --no-generate-docs + --errors ambiguous-doc-reference,broken-link,deprecated + --errors unknown-directive,unknown-macro,unresolved-doc-reference + sanity_checks: name: Sanity checks runs-on: ubuntu-latest - needs: [sass_spec, dart_tests, node_tests, static_analysis] + needs: [sass_spec, dart_tests, node_tests, static_analysis, dartdoc] if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'" steps: