Skip to content
This repository was archived by the owner on May 25, 2025. It is now read-only.

Commit e5c01a9

Browse files
committed
ci: add dart_package workflow
- Configure dart package - Setup min coverage - Exclude generated files
1 parent e7867d3 commit e5c01a9

File tree

7 files changed

+496
-8
lines changed

7 files changed

+496
-8
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!--
2+
Thanks for contributing!
3+
4+
Provide a description of your changes below and a general summary in the title
5+
6+
Please look at the following checklist to ensure that your PR can be accepted quickly:
7+
-->
8+
9+
## Description
10+
11+
<!--- Describe your changes in detail -->
12+
13+
## Type of Change
14+
15+
<!--- Put an `x` in all the boxes that apply: -->
16+
17+
- [ ] ✨ New feature (non-breaking change which adds functionality)
18+
- [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
19+
- [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
20+
- [ ] 🧹 Code refactor
21+
- [ ] ✅ Build configuration change
22+
- [ ] 📝 Documentation
23+
- [ ] 🗑️ Chore

.github/dependabot.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
- package-ecosystem: "pub"
8+
directory: "/"
9+
schedule:
10+
interval: "daily"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: ht_headlines_repository
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
15+
with:
16+
dart_sdk: 3.7.0
17+
min_coverage: 100
18+
coverage_excludes: "*.g.dart"

lib/ht_headlines_repository.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/// repository for managing news headline data. It abstracts the data source
2-
/// and provides a clean API for fetching, creating, updating, deleting, and
1+
/// repository for managing news headline data. It abstracts the data source
2+
/// and provides a clean API for fetching, creating, updating, deleting, and
33
/// searching headlines.
44
library;
55

lib/src/ht_headlines_repository.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ import 'package:rxdart/rxdart.dart';
1111
/// {@endtemplate}
1212
class HtHeadlinesRepository {
1313
/// {@macro ht_headlines_repository}
14-
const HtHeadlinesRepository({
15-
required HtHeadlinesClient client,
16-
}) : _client = client;
14+
const HtHeadlinesRepository({required HtHeadlinesClient client})
15+
: _client = client;
1716

1817
final HtHeadlinesClient _client;
1918

0 commit comments

Comments
 (0)