Skip to content

Commit

Permalink
Cleanup mono_repo yaml files (#1728)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Jun 27, 2022
1 parent 6d656f6 commit 0f836e9
Show file tree
Hide file tree
Showing 9 changed files with 118 additions and 115 deletions.
26 changes: 13 additions & 13 deletions integration_tests/nnbd_opted_in/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# See https://pub.dev/packages/mono_repo

sdk:
- dev
- stable
- dev
- stable

stages:
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- test: -p chrome,vm,node
os:
- linux
- windows
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- test: -p chrome,vm,node
os:
- linux
- windows
26 changes: 13 additions & 13 deletions integration_tests/nnbd_opted_out/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# See https://pub.dev/packages/mono_repo

sdk:
- dev
- stable
- dev
- stable

stages:
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- test: -p chrome,vm,node
os:
- linux
- windows
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- test: -p chrome,vm,node
os:
- linux
- windows
26 changes: 13 additions & 13 deletions integration_tests/spawn_hybrid/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# See https://pub.dev/packages/mono_repo

sdk:
- dev
- stable
- dev
- stable

stages:
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- test: -p chrome,vm,node
os:
- linux
- windows
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- test: -p chrome,vm,node
os:
- linux
- windows
22 changes: 11 additions & 11 deletions mono_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ github:
# Setting just `cron` keeps the defaults for `push` and `pull_request`
cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.”
on_completion:
- name: "Notify failure"
runs-on: ubuntu-latest
# Run only if other jobs have failed and this is a push or scheduled build.
if: (github.event_name == 'push' || github.event_name == 'schedule') && failure()
steps:
- run: >
curl -H "Content-Type: application/json" -X POST -d \
"{'text':'Build failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
"${CHAT_WEBHOOK_URL}"
env:
CHAT_WEBHOOK_URL: ${{ secrets.BUILD_AND_TEST_TEAM_CHAT_WEBHOOK_URL }}
- name: "Notify failure"
runs-on: ubuntu-latest
# Run only if other jobs have failed and this is a push or scheduled build.
if: (github.event_name == 'push' || github.event_name == 'schedule') && failure()
steps:
- run: >
curl -H "Content-Type: application/json" -X POST -d \
"{'text':'Build failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
"${CHAT_WEBHOOK_URL}"
env:
CHAT_WEBHOOK_URL: ${{ secrets.BUILD_AND_TEST_TEAM_CHAT_WEBHOOK_URL }}
merge_stages:
- analyze_and_format
10 changes: 5 additions & 5 deletions pkgs/checks/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# See https://pub.dev/packages/mono_repo

sdk:
- dev
- dev

stages:
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
3 changes: 3 additions & 0 deletions pkgs/checks/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ environment:
dependencies:
async: ^2.8.0
test_api: ^0.4.0

dev_dependencies:
test: ^1.21.3
82 changes: 41 additions & 41 deletions pkgs/test/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
# See https://pub.dev/packages/mono_repo

sdk:
- dev
- stable
- dev
- stable

stages:
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
os:
- linux
- unit_test:
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 0
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 1
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 2
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 3
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 4
- command: dart test --preset travis --total-shards 5 --shard-index 0
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 1
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 2
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 3
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 4
os:
- windows
sdk:
- stable
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
os:
- linux
- unit_test:
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 0
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 1
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 2
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 3
- command: xvfb-run -s "-screen 0 1024x768x24" dart test --preset travis --total-shards 5 --shard-index 4
- command: dart test --preset travis --total-shards 5 --shard-index 0
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 1
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 2
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 3
os:
- windows
sdk:
- stable
- command: dart test --preset travis --total-shards 5 --shard-index 4
os:
- windows
sdk:
- stable
28 changes: 14 additions & 14 deletions pkgs/test_api/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# See https://pub.dev/packages/mono_repo

sdk:
- dev
- stable
- dev
- stable

stages:
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- group:
- command: dart test --preset travis -x browser
os:
- linux
- windows
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
sdk:
- dev
- unit_test:
- group:
- command: dart test --preset travis -x browser
os:
- linux
- windows
10 changes: 5 additions & 5 deletions pkgs/test_core/mono_pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# See https://pub.dev/packages/mono_repo

sdk:
- dev
- dev

stages:
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos
- analyze_and_format:
- group:
- format
- analyze: --fatal-infos

0 comments on commit 0f836e9

Please sign in to comment.