Skip to content

Commit 3b1bf90

Browse files
committed
ci: fix incorrect slash on Windows
Signed-off-by: Gavin Zhao <[email protected]>
1 parent 8d6d97b commit 3b1bf90

File tree

11 files changed

+474
-158
lines changed

11 files changed

+474
-158
lines changed

.github/workflows/dart.yml

+443-140
Large diffs are not rendered by default.

_tests/mono_pkg.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sdk:
44
- 2.17.0
55

66
stages:
7+
- analyze:
8+
- format
79
- build:
810
- command: dart run build_runner build --fail-on-severe
911
- unit_test:

angular/mono_pkg.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
sdk:
2+
- dev
3+
- stable
4+
- 2.17.0
5+
6+
stages:
7+
- analyze:
8+
- format
9+
- analyze

angular_ast/mono_pkg.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sdk:
55

66
stages:
77
- analyze:
8-
# TODO: add --fata-infos once analysis issues have been resolved
8+
- format
99
- analyze
1010
- build:
1111
- command: dart run build_runner build --fail-on-severe

angular_compiler/mono_pkg.yaml

+2-9
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ sdk:
55

66
stages:
77
- analyze:
8-
- group:
9-
- analyze #: --fatal-infos
10-
sdk: dev
11-
- group:
12-
- analyze
13-
sdk: stable
14-
- group:
15-
- analyze
16-
sdk: 2.17.0
8+
- format
9+
- analyze
1710
- build:
1811
- command: dart run build_runner build --fail-on-severe
1912
- unit_test:

angular_forms/mono_pkg.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ sdk:
44
- 2.17.0
55

66
stages:
7+
- analyze:
8+
- format
9+
- analyze
710
- build:
811
- command: dart run build_runner build --fail-on-severe
912
- unit_test:

angular_router/mono_pkg.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ sdk:
44
- 2.17.0
55

66
stages:
7+
- analyze:
8+
- format
9+
- analyze
710
- build:
811
- command: dart run build_runner build --fail-on-severe
912
- unit_test:

angular_test/mono_pkg.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ sdk:
44
- 2.17.0
55

66
stages:
7+
- analyze:
8+
- format
9+
- analyze
710
- build:
811
- command: dart run build_runner build --fail-on-severe
912
- unit_test:

examples/hello_world/mono_pkg.yaml renamed to examples/hello_world/_mono_pkg.yaml

+2-6
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ sdk:
55

66
stages:
77
- analyze:
8-
- group:
9-
- analyze #: --fatal-infos
10-
sdk: dev
11-
- group:
12-
- analyze
13-
sdk: stable
8+
- format
9+
- analyze
1410
- build:
1511
- command: dart run build_runner build --fail-on-severe

mono_repo.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ github:
2222
# env:
2323
# CHAT_WEBHOOK_URL: ${{ secrets.TEAM_CHAT_WEBHOOK_URL }}
2424

25-
self_validate: analyze
25+
self_validate: true
2626
merge_stages:
27-
- analyze
27+
- analyze

tool/ci.sh

+4
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ for PKG in ${PKGS}; do
8787
echo 'dart run build_runner test --fail-on-severe -- -P ci'
8888
dart run build_runner test --fail-on-severe -- -P ci || EXIT_CODE=$?
8989
;;
90+
format)
91+
echo 'dart format --output=none --set-exit-if-changed .'
92+
dart format --output=none --set-exit-if-changed . || EXIT_CODE=$?
93+
;;
9094
*)
9195
echo -e "\033[31mUnknown TASK '${TASK}' - TERMINATING JOB\033[0m"
9296
exit 64

0 commit comments

Comments
 (0)