docs(website): Clean up and modernize all documentation examples #2910
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 Workflow | |
| on: | |
| push: | |
| branches: [main, next] | |
| paths-ignore: | |
| - 'examples/**' | |
| - 'website/**' | |
| - 'assets/**' | |
| - 'tool/**' | |
| pull_request: | |
| branches: [main, next] | |
| paths-ignore: | |
| - 'examples/**' | |
| - 'test_resources/**' | |
| - 'website/**' | |
| - 'assets/**' | |
| - 'tool/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| format: | |
| name: Format Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: kuhnroyal/flutter-fvm-config-action@v2 | |
| id: fvm-config-action | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | |
| channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | |
| - name: Install Melos | |
| run: dart pub global activate melos | |
| - name: Bootstrap packages | |
| run: melos bootstrap | |
| - name: Check formatting | |
| run: dart format --set-exit-if-changed . | |
| test: | |
| name: Test | |
| uses: btwld/dart-actions/.github/workflows/ci.yml@main | |
| secrets: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| flutter-version: 'stable' | |
| run-dcm: true |