Check docs #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Builds the documentation and fails the build for some warnings. | |
# This workflow is only run once per week because building the documentation takes a long time. | |
name: Check docs | |
on: | |
schedule: | |
- cron: "0 0 * * 0" # Run on Sundays | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
check_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Build and check docs | |
run: | | |
flutter pub get | |
dart doc |