Temp PR to verify rebase of floating editor PR with latest from main #3675
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 project in a PR | |
| on: [pull_request] | |
| jobs: | |
| test_mac: | |
| runs-on: macos-latest | |
| defaults: | |
| run: | |
| # Run everything from within the super_editor project directory | |
| working-directory: ./super_editor | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| architecture: x64 | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # TODO: run static analysis here when we get to zero analysis warnings | |
| # Run all tests | |
| - run: flutter test | |
| test_windows: | |
| runs-on: windows-latest | |
| defaults: | |
| run: | |
| # Run everything from within the super_editor project directory | |
| working-directory: ./super_editor | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # TODO: run static analysis here when we get to zero analysis warnings | |
| # Run all tests | |
| - run: flutter test | |
| test_linux: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| # Run everything from within the super_editor project directory | |
| working-directory: ./super_editor | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # TODO: run static analysis here when we get to zero analysis warnings | |
| # Run all tests | |
| - run: flutter test | |
| test_goldens_super_editor: | |
| if: ${{ github.base_ref == 'main' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_editor | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| architecture: x64 | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all golden tests | |
| - run: flutter test test_goldens | |
| # Archive golden failures | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: golden-failures | |
| path: "**/failures/**/*.png" | |
| test_super_editor_spellcheck: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_editor_spellcheck | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all tests | |
| - run: flutter test | |
| test_super_editor_spellcheck_goldens: | |
| if: ${{ github.base_ref == 'main' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_editor_spellcheck | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| architecture: x64 | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all golden tests | |
| - run: flutter test test_goldens | |
| # Archive golden failures | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: golden-failures | |
| path: "**/failures/**/*.png" | |
| analyze_super_editor_clipboard: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_editor_clipboard | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Enforce static analysis | |
| - run: flutter analyze | |
| test_super_editor_clipboard: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_editor_clipboard | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all tests | |
| - run: flutter test | |
| analyze_super_keyboard: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_keyboard | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Enforce static analysis | |
| - run: flutter analyze | |
| test_super_keyboard: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_keyboard | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all tests | |
| - run: flutter test | |
| test_goldens_super_keyboard: | |
| if: ${{ github.base_ref == 'main' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_keyboard | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| architecture: x64 | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all golden tests | |
| - run: flutter test test_goldens | |
| # Archive golden failures | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: golden-failures | |
| path: "**/failures/**/*.png" | |
| analyze_super_text_layout: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_text_layout | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Enforce static analysis | |
| - run: flutter analyze | |
| test_super_text_layout: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_text_layout | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all tests | |
| - run: flutter test | |
| test_goldens_super_text_layout: | |
| if: ${{ github.base_ref == 'main' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./super_text_layout | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Flutter environment | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "master" | |
| architecture: x64 | |
| # Download all the packages that the app uses | |
| - run: flutter pub get | |
| # Run all golden tests | |
| - run: flutter test test_goldens | |
| # Archive golden failures | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: golden-failures | |
| path: "**/failures/**/*.png" | |
| analyze_attributed_text: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./attributed_text | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Dart | |
| - uses: dart-lang/setup-dart@v1 | |
| # Install app dependencies | |
| - run: dart pub get | |
| # Enforce static analysis | |
| - run: dart analyze | |
| test_attributed_text: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./attributed_text | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Dart | |
| - uses: dart-lang/setup-dart@v1 | |
| # Install app dependencies | |
| - run: dart pub get | |
| # Run all tests | |
| - run: dart test | |
| build_docs_websiste: | |
| # Run this job only when the PR is targeting the main branch | |
| if: ${{ github.base_ref == 'main' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./doc/website | |
| steps: | |
| # Checkout the PR branch | |
| - uses: actions/checkout@v3 | |
| # Setup Dart environment | |
| - uses: dart-lang/setup-dart@v1 | |
| # Download all the packages that the app uses | |
| - run: dart pub get | |
| # Build the static site | |
| - run: dart run bin/super_editor_docs.dart |