Skip to content

Commit

Permalink
Allow analyzer 6 (#178)
Browse files Browse the repository at this point in the history
* Allow analyzer 6

* try without chrome

* add config

* run dart test directly

* cleanup
  • Loading branch information
robbecker-wf authored Nov 4, 2024
1 parent 6148b44 commit d1bce63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/dart_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: ./
Expand Down
15 changes: 8 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit d1bce63

Please sign in to comment.