From c472865037663fc3a9ae1ac1885b2b6f68e44419 Mon Sep 17 00:00:00 2001 From: pq Date: Wed, 14 Sep 2022 14:18:15 -0700 Subject: [PATCH 1/8] update to lints 2.0.0; prep for publishing --- lib/test_reflective_loader.dart | 10 +++++----- pubspec.yaml | 4 +++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/test_reflective_loader.dart b/lib/test_reflective_loader.dart index 6237f67..3881cf1 100644 --- a/lib/test_reflective_loader.dart +++ b/lib/test_reflective_loader.dart @@ -13,28 +13,28 @@ import 'package:test/test.dart' as test_package; * A marker annotation used to annotate test methods which are expected to fail * when asserts are enabled. */ -const _AssertFailingTest assertFailingTest = _AssertFailingTest(); +const Object assertFailingTest = _AssertFailingTest(); /** * A marker annotation used to annotate test methods which are expected to fail. */ -const FailingTest failingTest = FailingTest(); +const Object failingTest = FailingTest(); /** * A marker annotation used to instruct dart2js to keep reflection information * for the annotated classes. */ -const _ReflectiveTest reflectiveTest = _ReflectiveTest(); +const Object reflectiveTest = _ReflectiveTest(); /** * A marker annotation used to annotate test methods that should be skipped. */ -const SkippedTest skippedTest = SkippedTest(); +const Object skippedTest = SkippedTest(); /** * A marker annotation used to annotate "solo" groups and tests. */ -const _SoloTest soloTest = _SoloTest(); +const Object soloTest = _SoloTest(); final List<_Group> _currentGroups = <_Group>[]; int _currentSuiteLevel = 0; diff --git a/pubspec.yaml b/pubspec.yaml index 57cf02b..3919f78 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,5 +7,7 @@ environment: sdk: '>=2.12.0 <3.0.0' dependencies: - lints: ^1.0.0 test: ^1.16.0 + +dev_dependencies: + lints: ^2.0.0 From 56e5a3596e4e548c71caa216b08f96a00f1851e2 Mon Sep 17 00:00:00 2001 From: pq Date: Wed, 14 Sep 2022 14:19:00 -0700 Subject: [PATCH 2/8] ++ --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 3919f78..e4de919 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: test_reflective_loader -version: 0.2.1 +version: 0.2.2 description: Support for discovering tests and test suites using reflection. repository: https://github.com/dart-lang/test_reflective_loader From a832a1f1804873e4a4dfc158538bda5cca3324f8 Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 14 Sep 2022 14:25:31 -0700 Subject: [PATCH 3/8] drop beta container --- .github/workflows/build.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2ac7525..050ea78 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,9 +13,6 @@ jobs: build: runs-on: ubuntu-latest - container: - image: google/dart:beta - steps: - uses: actions/checkout@v2 From cc0e6eb0f71d0ab222a1ef00f3eabf7dfd520b6d Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 14 Sep 2022 14:28:28 -0700 Subject: [PATCH 4/8] fix setup --- .github/workflows/build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 050ea78..18269d4 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,6 +15,9 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: dart-lang/setup-dart@v1 + with: + sdk: dev - name: pub get run: pub get From a6184c21710ee40c74b58c36d138673cb72b71df Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 14 Sep 2022 14:30:49 -0700 Subject: [PATCH 5/8] + PUB_ENV --- .github/workflows/build.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 18269d4..48fa6c7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,6 +9,9 @@ on: # “At 00:00 (UTC) on Sunday.” - cron: '0 0 * * 0' +env: + PUB_ENVIRONMENT: bot.github + jobs: build: runs-on: ubuntu-latest From 711d4baeb7cd1a41c055daf6f21c76f183698c6d Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 14 Sep 2022 14:32:51 -0700 Subject: [PATCH 6/8] + dart pub call --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 48fa6c7..b3754c7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -23,7 +23,7 @@ jobs: sdk: dev - name: pub get - run: pub get + run: dart pub get - name: dart format run: dart format --output=none --set-exit-if-changed . From 2913d855733392a276b0d08c64600297bfdcdc4f Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 14 Sep 2022 14:37:47 -0700 Subject: [PATCH 7/8] 0.2.2 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05195a8..e233fef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.2 + +- Update to package:lints 2.0.0 and move it to a dev dependency. + ## 0.2.1 - Use package:lints for analysis. From 180446500983b29db8cb4d66fe4418bc0d3e7917 Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 14 Sep 2022 14:44:50 -0700 Subject: [PATCH 8/8] + matrix --- .github/workflows/build.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b3754c7..9728c94 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,13 +15,17 @@ env: jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + sdk: [dev, stable] steps: - uses: actions/checkout@v2 - uses: dart-lang/setup-dart@v1 with: - sdk: dev - + sdk: ${{ matrix.sdk }} + - name: pub get run: dart pub get