Add FCollapsible.axis for horizontal collapsing
#341
Workflow file for this run
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: Docs Snippets Presubmit Format | |
| on: | |
| workflow_dispatch: {} | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/docs_snippets_presubmit*.yaml' | |
| - 'docs_snippets/**' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| format: | |
| if: github.actor != 'auto-maid[bot]' && github.event.pull_request.draft == false | |
| name: Format & Lint | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: docs_snippets | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: subosito/flutter-action@v2.23.0 | |
| - working-directory: forui | |
| run: | | |
| flutter pub get | |
| dart run build_runner build | |
| - run: flutter pub get | |
| - run: dart run ../tool/sort.dart docs_snippets | |
| - run: dart run build_runner build | |
| - run: dart fix --apply | |
| # We format the code again since the required trailing comma lint fixes causes code to be formatted differently. | |
| - run: dart format . | |
| - id: changes | |
| working-directory: . | |
| run: | | |
| git diff --exit-code -- docs_snippets && echo "changes=false" >> $GITHUB_OUTPUT || { | |
| git diff -- docs_snippets > changes.patch | |
| echo "changes=true" >> $GITHUB_OUTPUT | |
| } | |
| - if: steps.changes.outputs.changes == 'true' | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: format-changes | |
| path: changes.patch | |
| retention-days: 1 |