Skip to content

Commit 4845d8f

Browse files
committed
melos: fix ci
Signed-off-by: Gavin Zhao <[email protected]>
1 parent 290d016 commit 4845d8f

File tree

9 files changed

+3096
-278
lines changed

9 files changed

+3096
-278
lines changed

.github/workflows/dart.yml

Lines changed: 3073 additions & 274 deletions
Large diffs are not rendered by default.

_tests/mono_pkg.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ sdk:
55

66
stages:
77
- build:
8+
- command: dart pub global activate melos; melos bs
89
- command: dart run build_runner build --fail-on-severe
910
- unit_test:
11+
- command: dart pub global activate melos; melos bs
1012
- command: dart run test -P vm
1113
- command: dart run build_runner test --fail-on-severe -- -P browser

ngast/mono_pkg.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ sdk:
55

66
stages:
77
- analyze:
8+
- command: dart pub global activate melos; melos bs
89
- format
910
- analyze: --fatal-infos
1011
- build:
12+
- command: dart pub global activate melos; melos bs
1113
- command: dart run build_runner build --fail-on-severe
1214
- unit_test:
15+
- command: dart pub global activate melos; melos bs
1316
- command: dart run build_runner test --fail-on-severe -- -P ci

ngcompiler/mono_pkg.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ sdk:
55

66
stages:
77
- analyze:
8+
- command: dart pub global activate melos; melos bs
89
- format
910
- analyze
1011
- build:
12+
- command: dart pub global activate melos; melos bs
1113
- command: dart run build_runner build --fail-on-severe
1214
- unit_test:
15+
- command: dart pub global activate melos; melos bs
1316
- command: dart run build_runner test --fail-on-severe -- -P ci

ngdart/mono_pkg.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ sdk:
55

66
stages:
77
- analyze:
8+
- command: dart pub global activate melos; melos bs
89
- format
9-
- analyze
10+
- analyze

ngforms/mono_pkg.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sdk:
55

66
stages:
77
- build:
8+
- command: dart pub global activate melos; melos bs
89
- command: dart run build_runner build --fail-on-severe
910
- unit_test:
11+
- command: dart pub global activate melos; melos bs
1012
- command: dart run build_runner test --fail-on-severe -- -P ci

ngrouter/mono_pkg.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sdk:
55

66
stages:
77
- build:
8+
- command: dart pub global activate melos; melos bs
89
- command: dart run build_runner build --fail-on-severe
910
- unit_test:
11+
- command: dart pub global activate melos; melos bs
1012
- command: dart run build_runner test --fail-on-severe -- -P ci

ngtest/mono_pkg.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ sdk:
55

66
stages:
77
- build:
8+
- command: dart pub global activate melos; melos bs
89
- command: dart run build_runner build --fail-on-severe
910
- unit_test:
11+
- command: dart pub global activate melos; melos bs
1012
- command: dart run build_runner test --fail-on-severe -- -P ci

tool/ci.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,22 @@ for PKG in ${PKGS}; do
7676
dart analyze || EXIT_CODE=$?
7777
;;
7878
command_0)
79+
echo 'dart pub global activate melos; melos bs'
80+
dart pub global activate melos; melos bs || EXIT_CODE=$?
81+
;;
82+
command_1)
7983
echo 'dart run build_runner build --fail-on-severe'
8084
dart run build_runner build --fail-on-severe || EXIT_CODE=$?
8185
;;
82-
command_1)
86+
command_2)
8387
echo 'dart run test -P vm'
8488
dart run test -P vm || EXIT_CODE=$?
8589
;;
86-
command_2)
90+
command_3)
8791
echo 'dart run build_runner test --fail-on-severe -- -P browser'
8892
dart run build_runner test --fail-on-severe -- -P browser || EXIT_CODE=$?
8993
;;
90-
command_3)
94+
command_4)
9195
echo 'dart run build_runner test --fail-on-severe -- -P ci'
9296
dart run build_runner test --fail-on-severe -- -P ci || EXIT_CODE=$?
9397
;;

0 commit comments

Comments
 (0)