Skip to content

Commit a42de7f

Browse files
committed
update package:gcloud metadata and CI config
1 parent 61c038d commit a42de7f

File tree

7 files changed

+27
-39
lines changed

7 files changed

+27
-39
lines changed

pkgs/gcloud/.github/workflows/test-package.yml renamed to .github/workflows/gcloud.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1-
name: Dart CI
1+
name: package:gcloud
2+
permissions: read-all
23

34
on:
4-
# Run on PRs and pushes to the default branch.
5-
push:
6-
branches: [ master ]
75
pull_request:
8-
branches: [ master ]
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/gcloud.yml'
9+
- 'pkgs/gcloud/**'
10+
push:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/gcloud.yml'
14+
- 'pkgs/gcloud/**'
915
schedule:
10-
- cron: "0 0 * * 0"
16+
- cron: '0 0 * * 0' # weekly
1117

1218
env:
1319
PUB_ENVIRONMENT: bot.github
@@ -17,6 +23,9 @@ jobs:
1723
# against Dart dev.
1824
analyze:
1925
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: pkgs/gcloud
2029
strategy:
2130
fail-fast: false
2231
matrix:
@@ -42,6 +51,9 @@ jobs:
4251
test:
4352
needs: analyze
4453
runs-on: ${{ matrix.os }}
54+
defaults:
55+
run:
56+
working-directory: pkgs/gcloud
4557
strategy:
4658
fail-fast: false
4759
matrix:

pkgs/gcloud/.github/dependabot.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

pkgs/gcloud/.github/workflows/publish.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

pkgs/gcloud/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Dart CI](https://github.com/dart-lang/gcloud/actions/workflows/test-package.yml/badge.svg)](https://github.com/dart-lang/gcloud/actions/workflows/test-package.yml)
1+
[![package:gcloud](https://github.com/dart-lang/labs/actions/workflows/gcloud.yml/badge.svg)](https://github.com/dart-lang/labs/actions/workflows/gcloud.yml)
22
[![pub package](https://img.shields.io/pub/v/gcloud.svg)](https://pub.dev/packages/gcloud)
33
[![package publisher](https://img.shields.io/pub/publisher/gcloud.svg)](https://pub.dev/packages/gcloud/publisher)
44

@@ -26,7 +26,7 @@ much higher expected rate of API and breaking changes.
2626

2727
Your feedback is valuable and will help us evolve this package. For general
2828
feedback, suggestions, and comments, please file an issue in the
29-
[bug tracker](https://github.com/dart-lang/gcloud/issues).
29+
[bug tracker](https://github.com/dart-lang/labs/issues).
3030

3131
## API details
3232

pkgs/gcloud/lib/datastore.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ class FilterRelation {
258258
///
259259
/// @nodoc
260260
@Deprecated('Use FilterRelation.GreaterThan instead')
261+
// ignore: constant_identifier_names
261262
static const FilterRelation GreatherThan = GreaterThan;
262263
// ignore: constant_identifier_names
263264
static const FilterRelation GreaterThanOrEqual = FilterRelation._('>=');
@@ -266,6 +267,7 @@ class FilterRelation {
266267
///
267268
/// @nodoc
268269
@Deprecated('Use FilterRelation.GreaterThanOrEqual instead')
270+
// ignore: constant_identifier_names
269271
static const FilterRelation GreatherThanOrEqual = GreaterThanOrEqual;
270272
// ignore: constant_identifier_names
271273
static const FilterRelation Equal = FilterRelation._('==');
@@ -307,6 +309,7 @@ class OrderDirection {
307309
///
308310
/// @nodoc
309311
@Deprecated('Use OrderDirection.Descending instead')
312+
// ignore: constant_identifier_names
310313
static const OrderDirection Decending = Descending;
311314

312315
final String name;

pkgs/gcloud/lib/src/datastore_impl.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ class DatastoreImpl implements datastore.Datastore {
9999
for (var i = 0; i < a.path!.length; i++) {
100100
if (a.path![i].id != b.path![i].id ||
101101
a.path![i].name != b.path![i].name ||
102-
a.path![i].kind != b.path![i].kind) return false;
102+
a.path![i].kind != b.path![i].kind) {
103+
return false;
104+
}
103105
}
104106
return true;
105107
}

pkgs/gcloud/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: gcloud
22
version: 0.8.14
33
description: >-
44
High level idiomatic Dart API for Google Cloud Storage, Pub-Sub and Datastore.
5-
repository: https://github.com/dart-lang/gcloud
5+
repository: https://github.com/dart-lang/labs/tree/main/pkgs/gcloud
66

77
topics:
88
- cloud

0 commit comments

Comments
 (0)