Skip to content

Commit

Permalink
Fix README build badges (#92)
Browse files Browse the repository at this point in the history
* Fix build badge in cqrs

* Fix build badge in leancode_hooks

* Fix build badge in login_client

* Fix build badge in login_client_flutter

* Fix build badge in override_api_endpoint

* Fix leancode_lint version in login_client

* Fix leancode_lint version in leancode_hooks

* Run leancode_hooks CI against Flutter 3.0.5

* Fix leancode_lint version in login_client_flutter

* Don't run CI on stable and beta, on latest version instead

* Add codecov config for leancode_hooks
  • Loading branch information
Albert221 authored Dec 20, 2022
1 parent 4b60d11 commit 5599482
Show file tree
Hide file tree
Showing 20 changed files with 66 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/leancode_hooks-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
include:
- channel: stable
- version: 3.0.5

defaults:
run:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/login_client_flutter-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
matrix:
include:
- version: '2.5.0'
- channel: stable
- channel: beta
- version: '3.3'

defaults:
run:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/override_api_endpoint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
matrix:
include:
- version: '2.5.0'
- channel: stable
- channel: beta
- version: '3.3'

defaults:
run:
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Tag your desired commit with `<package_name>-v<version>` and let the GitHub Acti
[cqrs-documentation]: https://pub.dev/documentation/cqrs/latest/
[cqrs-pub-badge]: https://img.shields.io/pub/v/cqrs
[cqrs-pub-badge-link]: https://pub.dev/packages/cqrs
[cqrs-build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/cqrs%20test
[cqrs-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22cqrs+test%22
[cqrs-build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/cqrs-test.yml?branch=master
[cqrs-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/cqrs-test.yml
[leancode_lint-link]: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/leancode_lint
[leancode_lint-documentation]: https://pub.dev/documentation/leancode_lint/latest/
[leancode_lint-pub-badge]: https://img.shields.io/pub/v/leancode_lint
Expand All @@ -26,24 +26,24 @@ Tag your desired commit with `<package_name>-v<version>` and let the GitHub Acti
[leancode_hooks-pub-badge]: https://img.shields.io/pub/v/leancode_hooks
[leancode_hooks-pub-badge-link]: https://pub.dev/packages/leancode_hooks

[leancode_hooks-build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/leancode_hooks%20test
[leancode_hooks-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22leancode_hooks+test%22
[leancode_hooks-build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/leancode_hooks-test.yml?branch=master
[leancode_hooks-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/leancode_hooks-test.yml

[login_client-link]: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/login_client
[login_client-documentation]: https://pub.dev/documentation/login_client/latest/
[login_client-pub-badge]: https://img.shields.io/pub/v/login_client
[login_client-pub-badge-link]: https://pub.dev/packages/login_client
[login_client-build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/login_client%20test
[login_client-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22login_client+test%22
[login_client-build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/login_client-test.yml?branch=master
[login_client-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/login_client-test.yml
[login_client_flutter-link]: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/login_client_flutter
[login_client_flutter-documentation]: https://pub.dev/documentation/login_client_flutter/latest/
[login_client_flutter-pub-badge]: https://img.shields.io/pub/v/login_client_flutter
[login_client_flutter-pub-badge-link]: https://pub.dev/packages/login_client_flutter
[login_client_flutter-build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/login_client_flutter%20test
[login_client_flutter-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22login_client_flutter+test%22
[login_client_flutter-build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/login_client_flutter-test.yml?branch=master
[login_client_flutter-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/login_client_flutter-test.yml
[override_api_endpoint-link]: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/override_api_endpoint
[override_api_endpoint-documentation]: https://pub.dev/documentation/override_api_endpoint/latest/
[override_api_endpoint-pub-badge]: https://img.shields.io/pub/v/override_api_endpoint
[override_api_endpoint-pub-badge-link]: https://pub.dev/packages/override_api_endpoint
[override_api_endpoint-build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/override_api_endpoint%20test
[override_api_endpoint-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22override_api_endpoint+test%22
[override_api_endpoint-build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/override_api_endpoint-test.yml?branch=master
[override_api_endpoint-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/override_api_endpoint-test.yml
9 changes: 7 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ coverage:
project:
default:
target: auto
informational: true
cqrs:
target: auto
flags:
- cqrs
login_client:
target: auto
flags:
- login_client
leancode_hooks:
flags:
- leancode_hooks

comment:
branches: null
Expand All @@ -22,3 +24,6 @@ flags:
login_client:
paths: ['packages/login_client']
carryforward: true
leancode_hooks:
paths: ['packages/leancode_hooks']
carryforward: true
4 changes: 4 additions & 0 deletions packages/cqrs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 8.0.0+1

- Fix build badge in README.

# 8.0.0

- **Breaking:** Bump minimum Dart version to 2.17.
Expand Down
4 changes: 2 additions & 2 deletions packages/cqrs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ if (result.success) {

[pub-badge]: https://img.shields.io/pub/v/cqrs
[pub-badge-link]: https://pub.dev/packages/cqrs
[build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/cqrs%20test
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22cqrs+test%22
[build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/cqrs-test.yml?branch=master
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/cqrs-test.yml
[codecov-badge]: https://img.shields.io/codecov/c/gh/leancodepl/flutter_corelibrary?flag=cqrs
[codecov-badge-link]: https://codecov.io/gh/leancodepl/flutter_corelibrary
2 changes: 1 addition & 1 deletion packages/cqrs/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: cqrs
version: 7.0.0
version: 8.0.0+1
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/cqrs
repository: https://github.com/leancodepl/flutter_corelibrary
description: >-
Expand Down
4 changes: 4 additions & 0 deletions packages/leancode_hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.0.3+1

- Fix build badge in README.

# 0.0.3

- Add tests for `useThrottle`
Expand Down
8 changes: 5 additions & 3 deletions packages/leancode_hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
discoverability and consistent versioning.

[![leancode_hooks pub.dev badge][pub-badge]][pub-badge-link]

[pub-badge]: https://img.shields.io/pub/v/leancode_hooks
[pub-badge-link]: https://pub.dev/packages/leancode_hooks
[![][build-badge]][build-badge-link]

## Usage

Expand All @@ -30,3 +28,7 @@ so you won't have to depend on it.
- [useThrottle](lib/src/use_throttle.dart)

[flutter_hooks]: https://pub.dev/packages/flutter_hooks
[pub-badge]: https://img.shields.io/pub/v/leancode_hooks
[pub-badge-link]: https://pub.dev/packages/leancode_hooks
[build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/leancode_hooks-test.yml?branch=master
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/leancode_hooks-test.yml
4 changes: 2 additions & 2 deletions packages/leancode_hooks/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: leancode_hooks
version: 0.0.3
version: 0.0.3+1
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/leancode_hooks
repository: https://github.com/leancodepl/flutter_corelibrary
description: >-
Expand All @@ -19,4 +19,4 @@ dev_dependencies:
coverage: ^1.2.0
flutter_test:
sdk: flutter
leancode_lint: ^1.1.0
leancode_lint: '>=1.0.2 <1.1.0'
4 changes: 4 additions & 0 deletions packages/login_client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.1.0+1

- Fix build badge in README.

# 2.1.0

- Bumped `build_runner` dependency to `2.0.0`
Expand Down
4 changes: 2 additions & 2 deletions packages/login_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ For Flutter implementation of the `CredentialsStorage`, check out [`login_client
[pub-badge-link]: https://pub.dev/packages/login_client
[build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/login_client%20test
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22login_client+test%22
[codecov-badge]: https://img.shields.io/codecov/c/gh/leancodepl/flutter_corelibrary?flag=login_client
[codecov-badge-link]: https://codecov.io/gh/leancodepl/flutter_corelibrary
[build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/login_client-test.yml?branch=master
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/login_client-test.yml
[snippet]: assets/snippet.png
[login_client_flutter]: https://pub.dev/packages/login_client_flutter
4 changes: 2 additions & 2 deletions packages/login_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: login_client
version: 2.1.0
version: 2.1.0+1
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/login_client
repository: https://github.com/leancodepl/flutter_corelibrary
description: >-
Expand All @@ -19,6 +19,6 @@ dependencies:
dev_dependencies:
build_runner: ^2.0.0
coverage: ^1.0.3
leancode_lint: ^1.0.2
leancode_lint: '>=1.0.2 <1.1.0'
mockito: ^5.0.0
test: ^1.16.4
4 changes: 4 additions & 0 deletions packages/login_client_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.0.1+1

- Fix build badge in README.

# 2.0.1

- Increase `flutter_secure_storage` version range to `>=4.2.0 <6.0.0`.
Expand Down
12 changes: 6 additions & 6 deletions packages/login_client_flutter/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# login_client_flutter

[![login_client_flutter pub.dev badge][login_client_flutter-pub-badge]][login_client_flutter-pub-badge-link]
[![login_client_flutter continuous integration badge][login_client_flutter-build-badge]][login_client_flutter-build-badge-link]
[![login_client_flutter pub.dev badge][pub-badge]][pub-badge-link]
[![login_client_flutter continuous integration badge][build-badge]][build-badge-link]

[flutter_secure_storage] implementation of a `CredentialsStorage` for the [login_client] package.

Expand Down Expand Up @@ -35,9 +35,9 @@ Exclude Flutter Secure Storage from Android full backup.
</full-backup-content>
```

[login_client_flutter-pub-badge]: https://img.shields.io/pub/v/login_client_flutter
[login_client_flutter-pub-badge-link]: https://pub.dev/packages/login_client_flutter
[login_client_flutter-build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/login_client_flutter%20test
[login_client_flutter-build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22login_client_flutter+test%22
[pub-badge]: https://img.shields.io/pub/v/login_client_flutter
[pub-badge-link]: https://pub.dev/packages/login_client_flutter
[build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/login_client_flutter-test.yml?branch=master
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/login_client_flutter-test.yml
[flutter_secure_storage]: https://github.com/mogol/flutter_secure_storage
[login_client]: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/login_client
4 changes: 2 additions & 2 deletions packages/login_client_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: login_client_flutter
version: 2.0.1
version: 2.0.1+1
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/login_client_flutter
repository: https://github.com/leancodepl/flutter_corelibrary
description: >-
Expand All @@ -17,4 +17,4 @@ dependencies:
login_client: ^2.0.1

dev_dependencies:
leancode_lint: ^1.0.2
leancode_lint: '>=1.0.2 <1.1.0'
6 changes: 5 additions & 1 deletion packages/override_api_endpoint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.0
# 1.0.0+2

- Fix build badge in README.

# 1.0.0+1

- Initial release
4 changes: 2 additions & 2 deletions packages/override_api_endpoint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ final apiEndpoint = await overrideApiEndpoint(
```
[pub-badge]: https://img.shields.io/pub/v/override_api_endpoint
[pub-badge-link]: https://pub.dev/packages/override_api_endpoint
[build-badge]: https://img.shields.io/github/workflow/status/leancodepl/flutter_corelibrary/override_api_endpoint%20test
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions?query=workflow%3A%22override_api_endpoint+test%22
[build-badge]: https://img.shields.io/github/actions/workflow/status/leancodepl/flutter_corelibrary/override_api_endpoint-test.yml?branch=master
[build-badge-link]: https://github.com/leancodepl/flutter_corelibrary/actions/workflows/override_api_endpoint-test.yml
[override_api_endpoint_flutter]: https://pub.dev/packages/override_api_endpoint_flutter
2 changes: 1 addition & 1 deletion packages/override_api_endpoint/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: override_api_endpoint
version: 1.0.0+1
version: 1.0.0+2
homepage: https://github.com/leancodepl/flutter_corelibrary/tree/master/packages/override_api_endpoint
repository: https://github.com/leancodepl/flutter_corelibrary
description: >-
Expand Down

0 comments on commit 5599482

Please sign in to comment.