Add SummaryCard component for FWE #6170
This file contains hidden or 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: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| # Declare default permissions as read only. | |
| permissions: read-all | |
| jobs: | |
| test: | |
| name: Analyze and test code examples | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'flutter/website' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: "Beta channel" | |
| branch: beta | |
| experimental: false | |
| - name: "Stable channel" | |
| branch: stable | |
| experimental: true | |
| continue-on-error: ${{ matrix.experimental }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: subosito/flutter-action@e938fdf56512cc96ef2f93601a5a40bde3801046 | |
| with: | |
| channel: ${{ matrix.branch }} | |
| - name: Fetch Dart dependencies | |
| run: dart pub get | |
| continue-on-error: ${{ matrix.experimental }} | |
| - name: Check Dart code formatting | |
| run: dart run dash_site format-dart --check | |
| continue-on-error: ${{ matrix.experimental }} | |
| - name: Analyze Dart code | |
| run: dart run dash_site analyze-dart | |
| continue-on-error: ${{ matrix.experimental }} | |
| - name: Run Dart tests | |
| run: dart run dash_site test-dart | |
| continue-on-error: ${{ matrix.experimental }} | |
| excerpts: | |
| name: Check if code excerpts are up to date | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'flutter/website' | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c | |
| with: | |
| sdk: beta | |
| - name: Fetch Dart dependencies | |
| run: dart pub get | |
| - name: Check if excerpts are up to date | |
| run: dart run dash_site refresh-excerpts --fail-on-update --dry-run | |
| continue-on-error: ${{ matrix.experimental }} | |
| linkcheck: | |
| name: Build site and check links | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c | |
| with: | |
| sdk: beta | |
| - name: Fetch Dart dependencies | |
| run: dart pub get | |
| - name: Install firebase-tools | |
| run: curl -sL https://firebase.tools | bash | |
| - name: Build site | |
| run: dart run dash_site build | |
| - name: Check for broken Markdown link references | |
| run: dart run dash_site check-link-references | |
| - name: Check for broken internal links | |
| run: dart run dash_site check-links | |
| firebase-validate: | |
| name: Validate Firebase configuration | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'flutter/website' | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: dart-lang/setup-dart@e51d8e571e22473a2ddebf0ef8a2123f0ab2c02c | |
| with: | |
| sdk: beta | |
| - name: Fetch Dart dependencies | |
| run: dart pub get | |
| - name: Validate the firebase.json file | |
| run: dart run dash_site verify-firebase-json |