| name: Common workflows | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| common-validations: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 | |
| with: | |
| channel: stable | |
| architecture: x64 # only needed for running locally (mac) | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| - name: Run analyze.dart | |
| working-directory: analyze | |
| run: | | |
| flutter pub get | |
| dart --enable-asserts analyze.dart | |
| - name: Run cocoon_code_health | |
| run: | | |
| flutter pub get | |
| dart run dev/cocoon_code_health/bin/check.dart | |
| - name: Run license check | |
| working-directory: licenses | |
| run: | | |
| flutter pub get | |
| dart run check_licenses.dart |