Skip to content

Commit

Permalink
require dart 3.0; add publishing automation (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Oct 5, 2023
1 parent 21976d6 commit 6bd246f
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [2.18.0, dev]
sdk: [3.0.0, stable, dev]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
Expand All @@ -66,7 +66,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [2.18.0, dev]
sdk: [3.0.0, stable, dev]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
- uses: dart-lang/setup-dart@d6a63dab3335f427404425de0fbfed4686d93c4f
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/post_summaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Comment on PRs

on:
# Trigger this workflow after the Publish workflow completes. This workflow
# will have permissions to create comments on the PR, even if the original
# workflow couldn't.
workflow_run:
workflows:
- Publish
types:
- completed

jobs:
upload:
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main
permissions:
pull-requests: write
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
# Trigger on pull requests that target the default branch.
pull_request:
branches: [ master ]
# Also, trigger when tags are pushed to the repo.
push:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]

# The script below will perform publishing checks (version checks, publishing
# dry run, ...) when run on a PR, and perform an actual pub publish when run as
# a result of a git tag event.
jobs:
publish:
if: ${{ github.repository_owner == 'google' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
with:
write-comments: false
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.4-wip

* Require Dart 3.0.

## 3.0.3

* Include a content-type header when sending requests from `async_html.dart`.
Expand All @@ -7,7 +11,7 @@

## 3.0.2

* Require Dart 2.18
* Require Dart 2.18.
* "Officially" deprecate `core.dart` and `io.dart` libraries.
* Remove the dependecy on `package:archive`.

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: webdriver
version: 3.0.3
version: 3.0.4-wip
description: >-
Provides WebDriver bindings for Dart. Supports WebDriver JSON interface and
W3C spec. Requires the use of WebDriver remote server.
repository: https://github.com/google/webdriver.dart

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: ^3.0.0

dependencies:
matcher: ^0.12.10
Expand Down

0 comments on commit 6bd246f

Please sign in to comment.