diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3b3cf33..ccdd085 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -33,6 +33,9 @@ jobs: - name: Analyze run: melos run analyze.ci + - name: Test + run: melos run test.ci + typescript: name: TypeScript runs-on: ubuntu-latest @@ -53,3 +56,7 @@ jobs: - name: Type check working-directory: apps/widgets_preview run: npm run typecheck + + - name: Test + working-directory: apps/widgets_preview + run: npm run test diff --git a/melos.yaml b/melos.yaml index c76f1fb..5fb5fb0 100644 --- a/melos.yaml +++ b/melos.yaml @@ -46,3 +46,21 @@ scripts: description: Analyze codebase and check for analysis errors run: > dart analyze --fatal-infos --fatal-warnings . + + test: + description: Run tests + run: > + flutter test + exec: + concurrency: 1 + packageFilters: + dirExists: + - test + test.all: + description: Run tests for all packages + run: > + melos run --no-select test + test.ci: + description: Run tests and fail on any test error + run: > + melos exec -- flutter test