diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 88526797..3795334a 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -553,12 +553,12 @@ jobs: github-token: "${{ secrets.GITHUB_TOKEN }}" path-to-lcov: mono_repo/coverage/lcov.info flag-name: coverage_00 - parallel: "true" + parallel: true - name: Upload coverage to codecov.io uses: codecov/codecov-action@master with: files: mono_repo/coverage/lcov.info - fail_ci_if_error: "true" + fail_ci_if_error: true name: coverage_00 needs: - job_001 @@ -611,12 +611,12 @@ jobs: github-token: "${{ secrets.GITHUB_TOKEN }}" path-to-lcov: mono_repo/coverage/lcov.info flag-name: coverage_01 - parallel: "true" + parallel: true - name: Upload coverage to codecov.io uses: codecov/codecov-action@master with: files: mono_repo/coverage/lcov.info - fail_ci_if_error: "true" + fail_ci_if_error: true name: coverage_01 needs: - job_001 @@ -712,12 +712,12 @@ jobs: github-token: "${{ secrets.GITHUB_TOKEN }}" path-to-lcov: test_pkg/coverage/lcov.info flag-name: coverage_02 - parallel: "true" + parallel: true - name: Upload coverage to codecov.io uses: codecov/codecov-action@master with: files: test_pkg/coverage/lcov.info - fail_ci_if_error: "true" + fail_ci_if_error: true name: coverage_02 needs: - job_001 @@ -882,7 +882,7 @@ jobs: uses: coverallsapp/github-action@master with: github-token: "${{ secrets.GITHUB_TOKEN }}" - parallel-finished: "true" + parallel-finished: true needs: - job_015 - job_016 diff --git a/mono_repo/lib/src/commands/github/action_info.dart b/mono_repo/lib/src/commands/github/action_info.dart index c41cd8a8..f66f8589 100644 --- a/mono_repo/lib/src/commands/github/action_info.dart +++ b/mono_repo/lib/src/commands/github/action_info.dart @@ -53,7 +53,7 @@ enum ActionInfo implements Comparable { Step usage({ String? name, String? id, - Map? withContent, + Map? withContent, }) { name ??= this.name; final step = Step.uses( @@ -80,7 +80,7 @@ Job _coverageCompletionJob() => Job( withContent: { // https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow 'github-token': r'${{ secrets.GITHUB_TOKEN }}', - 'parallel-finished': 'true' + 'parallel-finished': true }, ) ], diff --git a/mono_repo/lib/src/commands/github/github_yaml.dart b/mono_repo/lib/src/commands/github/github_yaml.dart index 992dabdc..40812735 100644 --- a/mono_repo/lib/src/commands/github/github_yaml.dart +++ b/mono_repo/lib/src/commands/github/github_yaml.dart @@ -462,7 +462,7 @@ class _CommandEntry extends _CommandEntryBase implements GitHubActionOverrides { final Map? env; @override - final Map? withContent; + final Map? withContent; @override final String? shell; diff --git a/mono_repo/lib/src/commands/github/overrides.dart b/mono_repo/lib/src/commands/github/overrides.dart index b2e272fe..c8e48866 100644 --- a/mono_repo/lib/src/commands/github/overrides.dart +++ b/mono_repo/lib/src/commands/github/overrides.dart @@ -20,7 +20,7 @@ abstract class GitHubActionOverrides { /// /// A map of key-value pairs which are passed to the action's `with` /// parameter. - Map? get withContent; + Map? get withContent; /// The condition on which to run this action. String? get ifContent; diff --git a/mono_repo/lib/src/commands/github/step.dart b/mono_repo/lib/src/commands/github/step.dart index 3c688b02..264a3eb6 100644 --- a/mono_repo/lib/src/commands/github/step.dart +++ b/mono_repo/lib/src/commands/github/step.dart @@ -37,7 +37,7 @@ class Step implements GitHubActionOverrides, YamlLike { final String? uses; @override @JsonKey(name: 'with') - final Map? withContent; + final Map? withContent; @override final String? shell; diff --git a/mono_repo/lib/src/commands/github/step.g.dart b/mono_repo/lib/src/commands/github/step.g.dart index 2747aaa9..074527d9 100644 --- a/mono_repo/lib/src/commands/github/step.g.dart +++ b/mono_repo/lib/src/commands/github/step.g.dart @@ -17,7 +17,7 @@ Step _$StepFromJson(Map json) => $checkedCreate( withContent: $checkedConvert( 'with', (v) => (v as Map?)?.map( - (k, e) => MapEntry(k as String, e as String), + (k, e) => MapEntry(k as String, e), )), name: $checkedConvert('name', (v) => v as String?), uses: $checkedConvert('uses', (v) => v as String?), diff --git a/mono_repo/lib/src/github_config.dart b/mono_repo/lib/src/github_config.dart index f4ae013a..23d6ad6f 100644 --- a/mono_repo/lib/src/github_config.dart +++ b/mono_repo/lib/src/github_config.dart @@ -176,7 +176,7 @@ class GitHubActionConfig implements GitHubActionOverrides { final String? uses; @override - final Map? withContent; + final Map? withContent; @override final String? ifContent; diff --git a/mono_repo/lib/src/task_type.dart b/mono_repo/lib/src/task_type.dart index 0db8c95f..bc5239f3 100644 --- a/mono_repo/lib/src/task_type.dart +++ b/mono_repo/lib/src/task_type.dart @@ -12,6 +12,7 @@ import 'package_flavor.dart'; abstract class TaskType implements Comparable { static const command = _CommandTask(); + const factory TaskType.githubAction(GitHubActionConfig config) = _GitHubActionTaskType; @@ -168,14 +169,14 @@ class _TestWithCoverageTask extends TaskType { 'github-token': r'${{ secrets.GITHUB_TOKEN }}', 'path-to-lcov': '$packageDirectory/coverage/lcov.info', 'flag-name': 'coverage_$countString', - 'parallel': 'true', + 'parallel': true, }, ), if (config.coverageProcessors.contains(CoverageProcessor.codecov)) ActionInfo.codecov.usage( withContent: { 'files': '$packageDirectory/coverage/lcov.info', - 'fail_ci_if_error': 'true', + 'fail_ci_if_error': true, 'name': 'coverage_$countString', }, ),