Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[workflow] Upgrade mono_repo to v6.4.1 #375

Merged
merged 3 commits into from
Oct 15, 2022
Merged
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
85 changes: 48 additions & 37 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Created with package:mono_repo v6.0.0
# Created with package:mono_repo v6.4.1
name: Dart CI
on:
push:
Expand All @@ -14,35 +14,38 @@ defaults:
shell: bash
env:
PUB_ENVIRONMENT: bot.github
permissions: read-all

jobs:
job_001:
name: mono_repo self validate
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@v2.1.7
uses: actions/cache@ac8075791e805656e71b4ba23325ace9e3421120
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable"
restore-keys: |
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- uses: dart-lang/setup-dart@v1.3
- name: Setup Dart SDK
uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2.4.0
name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- name: mono_repo self validate
run: dart pub global activate mono_repo 6.0.0
run: dart pub global activate mono_repo 6.4.1
- name: mono_repo self validate
run: dart pub global run mono_repo generate --validate
job_002:
name: "analyzer_and_format; PKGS: chopper_built_value, chopper_generator; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@v2.1.7
uses: actions/cache@ac8075791e805656e71b4ba23325ace9e3421120
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper_built_value-chopper_generator;commands:format-analyze"
Expand All @@ -51,43 +54,45 @@ jobs:
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- uses: dart-lang/setup-dart@v1.3
- name: Setup Dart SDK
uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2.4.0
name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- id: chopper_built_value_pub_upgrade
name: chopper_built_value; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: chopper_built_value
run: dart pub upgrade
- name: "chopper_built_value; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'"
working-directory: chopper_built_value
run: "dart format --output=none --set-exit-if-changed ."
- name: "chopper_built_value; dart analyze --fatal-infos ."
run: dart analyze --fatal-infos .
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'"
working-directory: chopper_built_value
run: dart analyze --fatal-infos .
- id: chopper_generator_pub_upgrade
name: chopper_generator; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: chopper_generator
run: dart pub upgrade
- name: "chopper_generator; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.chopper_generator_pub_upgrade.conclusion == 'success'"
working-directory: chopper_generator
run: "dart format --output=none --set-exit-if-changed ."
- name: "chopper_generator; dart analyze --fatal-infos ."
run: dart analyze --fatal-infos .
if: "always() && steps.chopper_generator_pub_upgrade.conclusion == 'success'"
working-directory: chopper_generator
run: dart analyze --fatal-infos .
job_003:
name: "analyze_and_format; PKG: chopper; `dart format --output=none --set-exit-if-changed .`, `dart analyze --fatal-infos .`"
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@v2.1.7
uses: actions/cache@ac8075791e805656e71b4ba23325ace9e3421120
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper;commands:format-analyze"
Expand All @@ -96,24 +101,26 @@ jobs:
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- uses: dart-lang/setup-dart@v1.3
- name: Setup Dart SDK
uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2.4.0
name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- id: chopper_pub_upgrade
name: chopper; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: chopper
run: dart pub upgrade
- name: "chopper; dart format --output=none --set-exit-if-changed ."
run: "dart format --output=none --set-exit-if-changed ."
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'"
working-directory: chopper
run: "dart format --output=none --set-exit-if-changed ."
- name: "chopper; dart analyze --fatal-infos ."
run: dart analyze --fatal-infos .
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'"
working-directory: chopper
run: dart analyze --fatal-infos .
needs:
- job_001
- job_002
Expand All @@ -122,7 +129,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@v2.1.7
uses: actions/cache@ac8075791e805656e71b4ba23325ace9e3421120
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value;commands:test_1"
Expand All @@ -131,29 +138,31 @@ jobs:
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- uses: dart-lang/setup-dart@v1.3
- name: Setup Dart SDK
uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2.4.0
name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- id: chopper_pub_upgrade
name: chopper; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: chopper
run: dart pub upgrade
- name: "chopper; dart test -p chrome"
run: dart test -p chrome
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'"
working-directory: chopper
run: dart test -p chrome
- id: chopper_built_value_pub_upgrade
name: chopper_built_value; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: chopper_built_value
run: dart pub upgrade
- name: "chopper_built_value; dart test -p chrome"
run: dart test -p chrome
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'"
working-directory: chopper_built_value
run: dart test -p chrome
needs:
- job_001
- job_002
Expand All @@ -163,7 +172,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cache Pub hosted dependencies
uses: actions/cache@v2.1.7
uses: actions/cache@ac8075791e805656e71b4ba23325ace9e3421120
with:
path: "~/.pub-cache/hosted"
key: "os:ubuntu-latest;pub-cache-hosted;sdk:stable;packages:chopper-chopper_built_value;commands:test_0"
Expand All @@ -172,29 +181,31 @@ jobs:
os:ubuntu-latest;pub-cache-hosted;sdk:stable
os:ubuntu-latest;pub-cache-hosted
os:ubuntu-latest
- uses: dart-lang/setup-dart@v1.3
- name: Setup Dart SDK
uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2.4.0
name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- id: chopper_pub_upgrade
name: chopper; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: chopper
run: dart pub upgrade
- name: chopper; dart test
run: dart test
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'"
working-directory: chopper
run: dart test
- id: chopper_built_value_pub_upgrade
name: chopper_built_value; dart pub upgrade
run: dart pub upgrade
if: "always() && steps.checkout.conclusion == 'success'"
working-directory: chopper_built_value
run: dart pub upgrade
- name: chopper_built_value; dart test
run: dart test
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'"
working-directory: chopper_built_value
run: dart test
needs:
- job_001
- job_002
Expand All @@ -203,15 +214,15 @@ jobs:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@v1.0
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: upload_coverage
name: chopper; tool/coverage.sh
if: "always() && steps.checkout.conclusion == 'success'"
run: bash tool/coverage.sh
if: "always() && steps.checkout.conclusion == 'success'"
env:
CODECOV_TOKEN: "${{ secrets.CODECOV_TOKEN }}"
needs:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
name: "Publish chopper"
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@v1.0
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: publish
run: bash tool/publish.sh chopper
env:
Expand All @@ -22,11 +22,11 @@ jobs:
name: "Publish chopper_generator"
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@v1.0
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: publish
run: bash tool/publish.sh chopper_generator
env:
Expand All @@ -35,11 +35,11 @@ jobs:
name: "Publish chopper_built_value"
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@v1.0
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: publish
run: bash tool/publish.sh chopper_built_value
env:
Expand Down
4 changes: 2 additions & 2 deletions mono_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ github:
- name: "Coverage"
runs-on: ubuntu-latest
steps:
- uses: dart-lang/setup-dart@v1.0
- uses: dart-lang/setup-dart@v1.3
with:
sdk: stable
- id: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: upload_coverage
name: "chopper; tool/coverage.sh"
if: "always() && steps.checkout.conclusion == 'success'"
Expand Down
2 changes: 1 addition & 1 deletion tool/ci.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Created with package:mono_repo v6.0.0
# Created with package:mono_repo v6.4.1

# Support built in commands on windows out of the box.
# When it is a flutter repo (check the pubspec.yaml for "sdk: flutter")
Expand Down