Skip to content

Commit

Permalink
add direct links to the package issue trackers (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Nov 7, 2024
1 parent 2eb031a commit ac9ef1c
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 115 deletions.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/appengine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
name: "package:appengine"
about: "Create a bug or file a feature request against package:appengine."
labels: "package:appengine"
---
File renamed without changes.
5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/gcloud.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

'type-infra':
- changed-files:
- any-glob-to-any-file: '.github/**'
- any-glob-to-any-file: '.github/**'

'package:appengine':
- changed-files:
- any-glob-to-any-file: 'pkgs/appengine/**'
- any-glob-to-any-file: 'pkgs/appengine/**'

'package:gcloud':
- changed-files:
- any-glob-to-any-file: 'pkgs/gcloud/**'
- any-glob-to-any-file: 'pkgs/gcloud/**'

'package:native_synchronization':
- changed-files:
- any-glob-to-any-file: 'pkgs/native_synchronization/**'
- any-glob-to-any-file: 'pkgs/native_synchronization/**'
37 changes: 21 additions & 16 deletions .github/workflows/appengine.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,45 @@
name: package:appengine

permissions: read-all

on:
pull_request:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ main ]
paths:
- '.github/workflows/appengine.yml'
- 'pkgs/appengine/**'
push:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/appengine.yml'
- 'pkgs/appengine/**'
schedule:
- cron: '0 0 * * 0' # weekly

defaults:
run:
working-directory: pkgs/appengine

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/appengine

strategy:
fail-fast: false
matrix:
sdk: [stable, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}

- name: Install dependencies
run: dart pub get

# Disabled - this would format ~492 files.
# - name: Verify formatting
# run: dart format --output=none --set-exit-if-changed .
- run: dart pub get

- name: Analyze project source
run: dart analyze --fatal-infos
- run: dart analyze --fatal-infos

# Disabled - this would format ~492 files.
# - run: dart format --output=none --set-exit-if-changed .
# if: ${{ matrix.sdk == 'stable' }}

- name: Run tests
run: dart test
- run: dart test
63 changes: 17 additions & 46 deletions .github/workflows/gcloud.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,44 @@
name: package:gcloud

permissions: read-all

on:
pull_request:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ main ]
paths:
- '.github/workflows/gcloud.yml'
- 'pkgs/gcloud/**'
push:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/gcloud.yml'
- 'pkgs/gcloud/**'
schedule:
- cron: '0 0 * * 0' # weekly

env:
PUB_ENVIRONMENT: bot.github
defaults:
run:
working-directory: pkgs/gcloud

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: pkgs/gcloud
strategy:
fail-fast: false
matrix:
sdk: [dev]
sdk: [stable, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
if: always() && steps.install.outcome == 'success'
- name: Analyze code
run: dart analyze --fatal-infos
if: always() && steps.install.outcome == 'success'

# Run tests on a matrix consisting of two dimensions:
# 1. OS: ubuntu-latest, (macos-latest, windows-latest)
# 2. release channel: dev
test:
needs: analyze
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: pkgs/gcloud
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.0.0, dev]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test --platform vm -P ci
if: always() && steps.install.outcome == 'success'
- run: dart pub get

- run: dart analyze --fatal-infos

- run: dart format --output=none --set-exit-if-changed .
if: ${{ matrix.sdk == 'stable' }}

- run: dart test --platform vm -P ci
56 changes: 17 additions & 39 deletions .github/workflows/native_synchronization.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,44 @@
name: package:native_synchronization

permissions: read-all

on:
pull_request:
# Run CI on pushes to the main branch, and on PRs against main.
push:
branches: [ main ]
paths:
- '.github/workflows/native_synchronization.yml'
- 'pkgs/native_synchronization/**'
push:
pull_request:
branches: [ main ]
paths:
- '.github/workflows/native_synchronization.yml'
- 'pkgs/native_synchronization/**'
schedule:
- cron: '0 0 * * 0' # weekly

defaults:
run:
working-directory: pkgs/native_synchronization

jobs:
analyze:
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: pkgs/native_synchronization
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [dev, stable]

sdk: [stable, dev]
steps:
# These are the latest versions of the github actions; dependabot will
# send PRs to keep these up-to-date.
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}

- name: Install dependencies
run: dart pub get

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
- run: dart pub get

- name: Analyze project source
run: dart analyze --fatal-infos

test:
needs: analyze
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: pkgs/native_synchronization
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
sdk: [dev, stable]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672
with:
sdk: ${{ matrix.sdk }}
- run: dart analyze --fatal-infos

- name: Install dependencies
run: dart pub get
- run: dart format --output=none --set-exit-if-changed .
if: ${{ matrix.sdk == 'stable' }}

- name: Run tests
run: dart test
- run: dart test
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ This repository is home to various Dart packages under the

## Packages

| Package | Description | Version |
|---|---|---|
| [appengine](pkgs/appengine/) | Support for using Dart as a custom runtime on Google App Engine Flexible Environment. | [![pub package](https://img.shields.io/pub/v/appengine.svg)](https://pub.dev/packages/appengine) |
| [gcloud](pkgs/gcloud/) | High level idiomatic Dart API for Google Cloud Storage, Pub-Sub and Datastore. | [![pub package](https://img.shields.io/pub/v/gcloud.svg)](https://pub.dev/packages/gcloud) |
| [native_synchronization](pkgs/native_synchronization/) | Low level synchronization primitives built on dart:ffi. | [![pub package](https://img.shields.io/pub/v/native_synchronization.svg)](https://pub.dev/packages/native_synchronization) |
| Package | Description | Issues | Version |
| --- | --- | --- | --- |
| [appengine](pkgs/appengine/) | Support for using Dart as a custom runtime on Google App Engine Flexible Environment. | [![package issues](https://img.shields.io/badge/package:appengine-4774bc)](null) | [![pub package](https://img.shields.io/pub/v/appengine.svg)](https://pub.dev/packages/appengine) |
| [gcloud](pkgs/gcloud/) | High level idiomatic Dart API for Google Cloud Storage, Pub-Sub and Datastore. | [![package issues](https://img.shields.io/badge/package:gcloud-4774bc)](null) | [![pub package](https://img.shields.io/pub/v/gcloud.svg)](https://pub.dev/packages/gcloud) |
| [native_synchronization](pkgs/native_synchronization/) | Low level synchronization primitives built on dart:ffi. | [![package issues](https://img.shields.io/badge/package:native_synchronization-4774bc)](null) | [![pub package](https://img.shields.io/pub/v/native_synchronization.svg)](https://pub.dev/packages/native_synchronization) |

## Publishing automation

Expand Down
1 change: 1 addition & 0 deletions pkgs/appengine/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ description: >-
Support for using Dart as a custom runtime on Google App Engine Flexible
Environment.
repository: https://github.com/dart-lang/labs/tree/main/pkgs/appengine
issue_tracker: https://github.com/dart-lang/labs/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aappengine

topics:
- cloud
Expand Down
1 change: 1 addition & 0 deletions pkgs/gcloud/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 0.8.16
description: >-
High level idiomatic Dart API for Google Cloud Storage, Pub-Sub and Datastore.
repository: https://github.com/dart-lang/labs/tree/main/pkgs/gcloud
issue_tracker: https://github.com/dart-lang/labs/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Agcloud

topics:
- cloud
Expand Down
1 change: 1 addition & 0 deletions pkgs/native_synchronization/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: native_synchronization
description: Low level synchronization primitives built on dart:ffi.
version: 0.3.1
repository: https://github.com/dart-lang/labs/tree/main/pkgs/native_synchronization
issue_tracker: https://github.com/dart-lang/labs/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Anative_synchronization

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit ac9ef1c

Please sign in to comment.