Skip to content

Commit ee7dfd3

Browse files
authored
Merge branch 'master' into fix-broadcast-channel-not-found-when-compile-on-mobile
2 parents 8107b2c + b96d8e3 commit ee7dfd3

140 files changed

Lines changed: 1804 additions & 64900 deletions

File tree

Some content is hidden

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

.github/FUNDING.yml

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

.github/workflows/dart.yml

Lines changed: 55 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,69 @@
11
name: Dart CI
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
branches:
8+
- master
9+
pull_request:
10+
11+
env:
12+
PANA_SCORE_MAX_DIFFERENCE: 20
413

514
jobs:
15+
format:
16+
name: Verify code formatting
17+
runs-on: ubuntu-slim
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: dart-lang/setup-dart@v1
21+
- name: Install dependencies
22+
run: dart --version && dart pub get
23+
- name: Verify formatting
24+
run: dart format --set-exit-if-changed .
25+
lints:
26+
name: Analyze source code
27+
runs-on: ubuntu-slim
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
sdk: [3.6, stable, beta, dev]
32+
steps:
33+
- uses: actions/checkout@v3
34+
- uses: dart-lang/setup-dart@v1
35+
with:
36+
sdk: ${{ matrix.sdk }}
37+
- name: Install dependencies
38+
run: dart --version && dart pub get
39+
- name: Analyze project source
40+
run: dart analyze
41+
package_health:
42+
name: Analyze package health
43+
runs-on: ubuntu-slim
44+
steps:
45+
- uses: actions/checkout@v3
46+
- uses: dart-lang/setup-dart@v1
47+
- name: Install dependencies
48+
run: dart --version && dart pub get && dart pub global activate pana
49+
- name: Run package analyzer
50+
run: dart pub global run pana --exit-code-threshold $PANA_SCORE_MAX_DIFFERENCE
651
test:
7-
runs-on: ${{ matrix.os }}
52+
name: Run tests
53+
runs-on: ubuntu-latest
854
strategy:
55+
fail-fast: false
956
matrix:
10-
os: [ubuntu-latest]
1157
sdk: [stable, beta, dev]
1258
steps:
1359
- uses: actions/checkout@v3
1460
- uses: dart-lang/setup-dart@v1
1561
with:
1662
sdk: ${{ matrix.sdk }}
63+
- uses: browser-actions/setup-chrome@v2
1764
- name: Install dependencies
18-
run: dart pub get
19-
- name: Run tests
20-
run: dart test --platform vm
65+
run: dart --version && dart pub get
66+
- name: Run tests (VM)
67+
run: dart test --platform vm
68+
- name: Run tests (Chrome, JS)
69+
run: dart test --platform chrome --compiler dart2js

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write
12+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13+
with:
14+
environment: pub.dev

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 2.2.7
2+
* Improves documentation and tests.
3+
4+
## 2.2.6
5+
* Removes an unnecessary dependency.
6+
7+
## 2.2.5
8+
* Updates the library for new Dart SDK and fixes most analyzer warnings.
9+
110
## 2.2.4
211
* Fixes a number of bug.
312
* Adds support for csslib 1.0.0.

0 commit comments

Comments
 (0)