Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
460 changes: 414 additions & 46 deletions .github/workflows/dart.yml

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions _tests/dart_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ include: ../tool/dart_test_repo.yaml

presets:
browser:
platforms:
- chrome
paths:
- test/bootstrap
- test/common
Expand Down
3 changes: 2 additions & 1 deletion _tests/mono_pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ stages:
- command: dart run build_runner build --fail-on-severe
- unit_test:
- command: dart run test -P vm
- command: dart run build_runner test --fail-on-severe -- -P browser
- command: dart run build_runner test --fail-on-severe -- -P browser -p chrome
- command: dart run build_runner test --fail-on-severe -- -P browser -p firefox
1 change: 1 addition & 0 deletions ngforms/dart_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ include: ../tool/dart_test_repo.yaml
# This repository has only web tests.
platforms:
- chrome
- firefox
3 changes: 2 additions & 1 deletion ngforms/mono_pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ stages:
- build:
- command: dart run build_runner build --fail-on-severe
- unit_test:
- command: dart run build_runner test --fail-on-severe -- -P ci
- command: dart run build_runner test --fail-on-severe -- -P ci -p chrome
- command: dart run build_runner test --fail-on-severe -- -P ci -p firefox
1 change: 1 addition & 0 deletions ngrouter/dart_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ include: ../tool/dart_test_repo.yaml
# This repository has only web tests.
platforms:
- chrome
- firefox
3 changes: 2 additions & 1 deletion ngrouter/mono_pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ stages:
- build:
- command: dart run build_runner build --fail-on-severe
- unit_test:
- command: dart run build_runner test --fail-on-severe -- -P ci
- command: dart run build_runner test --fail-on-severe -- -P ci -p chrome
- command: dart run build_runner test --fail-on-severe -- -P ci -p firefox
1 change: 1 addition & 0 deletions ngtest/dart_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ include: ../tool/dart_test_repo.yaml
# This repository has only web tests.
platforms:
- chrome
- firefox
3 changes: 2 additions & 1 deletion ngtest/mono_pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ stages:
- build:
- command: dart run build_runner build --fail-on-severe
- unit_test:
- command: dart run build_runner test --fail-on-severe -- -P ci
- command: dart run build_runner test --fail-on-severe -- -P ci -p chrome
- command: dart run build_runner test --fail-on-severe -- -P ci -p firefox
18 changes: 13 additions & 5 deletions tool/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,24 @@ for PKG in ${PKGS}; do
dart run test -P vm || EXIT_CODE=$?
;;
command_2)
echo 'dart run build_runner test --fail-on-severe -- -P browser'
dart run build_runner test --fail-on-severe -- -P browser || EXIT_CODE=$?
echo 'dart run build_runner test --fail-on-severe -- -P browser -p chrome'
dart run build_runner test --fail-on-severe -- -P browser -p chrome || EXIT_CODE=$?
;;
command_3)
echo 'dart run build_runner test --fail-on-severe -- -P browser -p firefox'
dart run build_runner test --fail-on-severe -- -P browser -p firefox || EXIT_CODE=$?
;;
command_4)
echo 'dart test -P ci'
dart test -P ci || EXIT_CODE=$?
;;
command_4)
echo 'dart run build_runner test --fail-on-severe -- -P ci'
dart run build_runner test --fail-on-severe -- -P ci || EXIT_CODE=$?
command_5)
echo 'dart run build_runner test --fail-on-severe -- -P ci -p chrome'
dart run build_runner test --fail-on-severe -- -P ci -p chrome || EXIT_CODE=$?
;;
command_6)
echo 'dart run build_runner test --fail-on-severe -- -P ci -p firefox'
dart run build_runner test --fail-on-severe -- -P ci -p firefox || EXIT_CODE=$?
;;
format)
echo 'dart format --output=none --set-exit-if-changed .'
Expand Down
6 changes: 4 additions & 2 deletions tool/dart_test_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ presets:
# Don't run any tests that are tagged ["fails-on-ci"].
exclude_tags: "fails-on-ci"

# https://github.com/dart-lang/test/blob/master/doc/configuration.md#reporter
reporter: expanded
override_platforms:
firefox:
settings:
arguments: --headless