build: try to generate dartdoc in workflow #20
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
name: Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
strategy: | |
matrix: | |
sdk: [stable, beta] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- run: dart pub get | |
- run: dart format --output=none --set-exit-if-changed . | |
- run: dart analyze | |
- run: dart test | |
- run: dart doc | |
- name: Upload generated dartdoc | |
uses: actions/upload-artifact@v4 | |
with: | |
name: docs | |
path: doc/ | |
# - name: Run example code | |
# run: | | |
# cd example | |
# dart pub get | |
# dart run lib/main.dart |