Skip to content

Commit

Permalink
Merge package:async into the core monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Oct 14, 2024
2 parents 8c5dca8 + c156a34 commit ca6aa3a
Show file tree
Hide file tree
Showing 87 changed files with 14,325 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkgs/async/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Set update schedule for GitHub Actions
# See https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-dependabot

version: 2
updates:

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
labels:
- autosubmit
groups:
github-actions:
patterns:
- "*"
14 changes: 14 additions & 0 deletions pkgs/async/.github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
pull_request:
branches: [ master ]
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]

jobs:
publish:
if: ${{ github.repository_owner == 'dart-lang' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
65 changes: 65 additions & 0 deletions pkgs/async/.github/workflows/test-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: Dart CI

on:
# Run on PRs and pushes to the default branch.
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 0 * * 0"

env:
PUB_ENVIRONMENT: bot.github

jobs:
# Check code formatting and static analysis on a single OS (linux)
# against Dart dev.
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- 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 }}
strategy:
fail-fast: false
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
sdk: [3.4, dev]
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
- 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
if: always() && steps.install.outcome == 'success'
- run: dart test --platform chrome --compiler dart2js
if: always() && steps.install.outcome == 'success'
- run: dart test --platform chrome --compiler dart2wasm
if: always() && steps.install.outcome == 'success'
11 changes: 11 additions & 0 deletions pkgs/async/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://dart.dev/guides/libraries/private-files

.buildlog
.DS_Store
.idea

.dart_tool/
.settings/
build/
pubspec.lock
.packages
6 changes: 6 additions & 0 deletions pkgs/async/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Below is a list of people and organizations that have contributed
# to the project. Names should be added to the list like so:
#
# Name/Organization <email address>

Google Inc.
Loading

0 comments on commit ca6aa3a

Please sign in to comment.