Skip to content

Commit d3d4472

Browse files
authored
Merge branch 'master' into replacewith-bugfix
2 parents 529a033 + cf6d0e4 commit d3d4472

140 files changed

Lines changed: 1802 additions & 64890 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: 58 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,72 @@
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+
needs: [format]
28+
runs-on: ubuntu-slim
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
sdk: [3.6, stable, beta, dev]
33+
steps:
34+
- uses: actions/checkout@v3
35+
- uses: dart-lang/setup-dart@v1
36+
with:
37+
sdk: ${{ matrix.sdk }}
38+
- name: Install dependencies
39+
run: dart --version && dart pub get
40+
- name: Analyze project source
41+
run: dart analyze
42+
package_health:
43+
name: Analyze package health
44+
needs: [lints]
45+
runs-on: ubuntu-slim
46+
steps:
47+
- uses: actions/checkout@v3
48+
- uses: dart-lang/setup-dart@v1
49+
- name: Install dependencies
50+
run: dart --version && dart pub get && dart pub global activate pana
51+
- name: Run package analyzer
52+
run: dart pub global run pana --exit-code-threshold $PANA_SCORE_MAX_DIFFERENCE
653
test:
7-
runs-on: ${{ matrix.os }}
54+
name: Run tests
55+
needs: [lints]
56+
runs-on: ubuntu-latest
857
strategy:
58+
fail-fast: false
959
matrix:
10-
os: [ubuntu-latest]
1160
sdk: [stable, beta, dev]
1261
steps:
1362
- uses: actions/checkout@v3
1463
- uses: dart-lang/setup-dart@v1
1564
with:
1665
sdk: ${{ matrix.sdk }}
66+
- uses: browser-actions/setup-chrome@v2
1767
- name: Install dependencies
18-
run: dart pub get
19-
- name: Run tests
20-
run: dart test --platform vm
68+
run: dart --version && dart pub get
69+
- name: Run tests (VM)
70+
run: dart test --platform vm
71+
- name: Run tests (Chrome, JS)
72+
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
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+
10+
## 2.2.4
11+
* Fixes a number of bug.
12+
* Adds support for csslib 1.0.0.
13+
114
## 2.2.3
215
* Fixes dependency constraint issues.
316

0 commit comments

Comments
 (0)