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

initial cut, only run jobs for modified packages #454

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
82 changes: 81 additions & 1 deletion .github/workflows/dart.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions mono_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ coverage_service:
- coveralls
- codecov

smart_jobs: true

github:
# Setting just `cron` keeps the defaults for `push` and `pull_request`
cron: '0 0 * * 0' # “At 00:00 (UTC) on Sunday.”
Expand Down
1 change: 1 addition & 0 deletions mono_repo/lib/src/ci_shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ String get createdWith => '# Created with package:mono_repo v$_pkgVersion';

String get _pkgVersion => _isTesting ? '1.2.3' : packageVersion;

const calculateChangesJobName = 'Calculating affected packages';
const selfValidateJobName = 'mono_repo self validate';

final selfValidateCommands = [
Expand Down
7 changes: 7 additions & 0 deletions mono_repo/lib/src/commands/github/action_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ enum ActionInfo implements Comparable<ActionInfo> {
name: 'Upload coverage to codecov.io',
repo: 'codecov/codecov-action',
version: codecovCodecovActionVersion,
),

/// See https://github.com/marketplace/actions/paths-changes-filter
pathsFilter(
name: 'Produce variables based on which packages are affected',
repo: 'dorny/paths-filter',
version: dornyPathsFilterVersion,
);

const ActionInfo({
Expand Down
1 change: 1 addition & 0 deletions mono_repo/lib/src/commands/github/action_versions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ const actionsCheckoutVersion = '8e5e7e5ab8b370d6c329ec480221332ada57f0ab';
const subositoFlutterActionVersion = '48cafc24713cca54bbe03cdc3a423187d413aafa';
const coverallsappGithubActionVersion = 'master';
const codecovCodecovActionVersion = 'main';
const dornyPathsFilterVersion = 'v2';
Loading