chore(mix): prepare skill for skills.sh (#1013) #3338
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: | |
| - 'assets/**' | |
| - 'tool/**' | |
| pull_request: | |
| branches: [main, next] | |
| paths-ignore: | |
| - 'test_resources/**' | |
| - '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: Setup Melos | |
| run: | | |
| dart pub global activate melos 6.3.3 | |
| melos bootstrap | |
| - name: Check formatting | |
| run: melos run format:check | |
| test: | |
| name: Test | |
| uses: btwld/dart-actions/.github/workflows/ci.yml@9075ce1232ec77b8747953f2ff4a349190e5a805 | |
| secrets: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| flutter-version: 'stable' | |
| # DCM requires CI credentials; the reusable workflow still runs Dart analysis. | |
| run-dcm: false | |
| melos-commands: | | |
| melos run schema:inventory | |
| melos run analyze:dart | |
| showcase-tool: | |
| name: Showcase Tool Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: packages/mix_winds/tool/visual-comparison | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: packages/mix_winds/tool/visual-comparison/package-lock.json | |
| - name: Install Node dependencies | |
| run: npm ci | |
| - name: Install Chromium | |
| run: npx playwright install --with-deps chromium | |
| - name: Run showcase tool tests | |
| run: npm test |