Skip to content

Commit 61c038d

Browse files
committed
Merge package:gcloud into shared labs repository
2 parents 4151ca3 + c061502 commit 61c038d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+12600
-0
lines changed

pkgs/gcloud/.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Dependabot configuration file.
2+
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
3+
version: 2
4+
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
schedule:
9+
interval: monthly
10+
labels:
11+
- autosubmit
12+
groups:
13+
github-actions:
14+
patterns:
15+
- "*"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
push:
9+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Dart CI
2+
3+
on:
4+
# Run on PRs and pushes to the default branch.
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
schedule:
10+
- cron: "0 0 * * 0"
11+
12+
env:
13+
PUB_ENVIRONMENT: bot.github
14+
15+
jobs:
16+
# Check code formatting and static analysis on a single OS (linux)
17+
# against Dart dev.
18+
analyze:
19+
runs-on: ubuntu-latest
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
sdk: [dev]
24+
steps:
25+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
26+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
27+
with:
28+
sdk: ${{ matrix.sdk }}
29+
- id: install
30+
name: Install dependencies
31+
run: dart pub get
32+
- name: Check formatting
33+
run: dart format --output=none --set-exit-if-changed .
34+
if: always() && steps.install.outcome == 'success'
35+
- name: Analyze code
36+
run: dart analyze --fatal-infos
37+
if: always() && steps.install.outcome == 'success'
38+
39+
# Run tests on a matrix consisting of two dimensions:
40+
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
41+
# 2. release channel: dev
42+
test:
43+
needs: analyze
44+
runs-on: ${{ matrix.os }}
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
# Add macos-latest and/or windows-latest if relevant for this package.
49+
os: [ubuntu-latest]
50+
sdk: [2.19.0, dev]
51+
steps:
52+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
53+
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
54+
with:
55+
sdk: ${{ matrix.sdk }}
56+
- id: install
57+
name: Install dependencies
58+
run: dart pub get
59+
- name: Run VM tests
60+
run: dart test --platform vm -P ci
61+
if: always() && steps.install.outcome == 'success'

pkgs/gcloud/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.dart_tool/
2+
pubspec.lock
3+
packages
4+
.pub
5+
.packages
6+
.idea

pkgs/gcloud/.status

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
*/packages/*: Skip
2+
*/*/packages/*: Skip
3+
*/*/*/packages/*: Skip
4+
5+
# We do not run the e2e tests inside the build/ directory in order to prevent
6+
# ./tools/test.py from running several e2e in parallel.
7+
build/test/db_all_e2e_test: Skip
8+
build/test/storage/e2e_test: Skip
9+
build/test/pubsub/pubsub_e2e_test: Skip
10+
11+
# This test is slow because
12+
# - eventual consistency forces us to put in sleep()s
13+
# - it does e2e testing
14+
# - it combines several tests to avoid concurrent tests touching the same data
15+
test/db_all_e2e_test: Slow, Pass
16+
17+
# This test is slow because
18+
# - it does e2e testing
19+
test/pubsub/pubsub_e2e_test: Slow, Pass
20+
21+
[ $browser ]
22+
build/test/storage/e2e_test: Skip
23+
test/storage/e2e_test: Skip
24+
25+
build/test/db_all_e2e_test: Skip
26+
test/db_all_e2e_test: Skip
27+
28+
build/test/pubsub/pubsub_e2e_test: Skip
29+
test/pubsub/pubsub_e2e_test: Skip
30+
31+
# Imports common_e2e.dart, which uses dart:io
32+
build/test/storage/storage_test: Skip
33+
test/storage/storage_test: Skip
34+
35+
build/test/pubsub/pubsub_test: Skip
36+
test/pubsub/pubsub_test: Skip
37+
38+
[ $compiler == dart2js ]
39+
*: Skip

pkgs/gcloud/AUTHORS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Below is a list of people and organizations that have contributed
2+
# to the Dart project. Names should be added to the list like so:
3+
#
4+
# Name/Organization <email address>
5+
6+
Google Inc.

0 commit comments

Comments
 (0)