From d1bce6338a5f377be7d1ec930336ec1f33745aaf Mon Sep 17 00:00:00 2001 From: Rob Becker Date: Mon, 4 Nov 2024 09:26:26 -0700 Subject: [PATCH] Allow analyzer 6 (#178) * Allow analyzer 6 * try without chrome * add config * run dart test directly * cleanup --- .github/workflows/dart_ci.yaml | 11 ++++++----- pubspec.yaml | 15 ++++++++------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/dart_ci.yaml b/.github/workflows/dart_ci.yaml index a987fb4..956f1aa 100644 --- a/.github/workflows/dart_ci.yaml +++ b/.github/workflows/dart_ci.yaml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - sdk: [ 2.19.6 ] + sdk: [ 2.19.6, 3.5.4 ] steps: - uses: actions/checkout@v2 - uses: dart-lang/setup-dart@v1 @@ -34,11 +34,12 @@ jobs: if: ${{ matrix.sdk == '2.19.6' }} - name: Analyze project source run: dart analyze - - name: Run tests on chrome - run: dart run build_runner test --delete-conflicting-outputs -- -p chrome - - name: Run tests in release mode on chrome - run: dart run build_runner test --release --delete-conflicting-outputs -- -p chrome + - name: Run tests in dev mode + run: dart test -p chrome + - name: Run tests in release mode + run: dart test -c dart2js -p chrome - name: Publish SBOM + if: ${{ matrix.sdk == '2.19.6' }} uses: anchore/sbom-action@v0 with: path: ./ diff --git a/pubspec.yaml b/pubspec.yaml index 47e4a16..d53d757 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,19 +3,20 @@ version: 8.0.8 description: A state management library written in dart that enforces immutability homepage: https://github.com/davidmarne/built_redux dependencies: - analyzer: ^5.0.0 - build: ">=1.0.0 <3.0.0" + analyzer: '>=5.0.0 <7.0.0' + build: ^2.0.0 built_collection: ^5.0.0 - built_value: ^8.0.0 - source_gen: ">=0.9.4 <2.0.0" + built_value: ^8.5.0 + source_gen: ^1.0.0 test: ^1.16.0 dev_dependencies: build_runner: ^2.0.0 build_test: ^2.0.0 - built_value_generator: ^8.0.0 + built_value_generator: ^8.5.0 build_web_compilers: '>=3.0.0 <5.0.0' - workiva_analysis_options: ^1.0.0 + workiva_analysis_options: ^1.2.0 environment: - sdk: ">=2.12.0 <3.0.0" + sdk: '>=2.12.0 <3.0.0' +