chore(deps): bump futureware-tech/simulator-action from 727e3a60e55d5a20daccb3fe108f0fafdd18f70b to 82fbf87feb764ca7f516260ebfb464b83638a068 #945
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: unit_tests | |
| on: | |
| pull_request: | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| detect_changed_packages: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| packages: ${{ steps.filter.outputs.changed_packages }} | |
| has_changes: ${{ steps.filter.outputs.changed_packages != '[]' }} | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - uses: ./.github/actions/changes | |
| id: filter | |
| unit_tests: | |
| name: "Run unit tests" | |
| runs-on: ubuntu-latest | |
| needs: detect_changed_packages | |
| if: needs.detect_changed_packages.outputs.has_changes == 'true' | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: ${{ fromJson(needs.detect_changed_packages.outputs.packages) }} | |
| target: ["html", "io"] | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "stable" | |
| cache: true | |
| - uses: bluefireteam/melos-action@v3 | |
| with: | |
| melos-version: "^7.5.0" | |
| - name: Run unit tests on Chrome | |
| if: matrix.target == 'html' | |
| run: | | |
| melos exec \ | |
| --scope=${MATRIX_PACKAGE}* \ | |
| --dir-exists="test" \ | |
| --fail-fast -- "flutter test --platform chrome" | |
| env: | |
| MATRIX_PACKAGE: ${{ matrix.package }} | |
| - name: Run unit tests | |
| if: matrix.target == 'io' | |
| run: | | |
| melos exec \ | |
| --scope=${MATRIX_PACKAGE}* \ | |
| --dir-exists="test" \ | |
| --fail-fast -- "flutter test" | |
| env: | |
| MATRIX_PACKAGE: ${{ matrix.package }} |