From 5f11f9d1c2e496413369229a83e4c6dcfee05a3c Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Tue, 30 May 2023 22:42:39 +0200 Subject: [PATCH 1/3] chore(deps): update cbor to 6.0.0 --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index fcfb714..c5e2f4c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ environment: sdk: '>=2.17.0 <3.0.0' dependencies: - cbor: ^5.0.1 + cbor: ^6.0.0 collection: ^1.16.0 meta: ^1.7.0 From 829a40991f0878bdf23f6d58dc86a7e02b734f24 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Tue, 30 May 2023 22:47:16 +0200 Subject: [PATCH 2/3] chore: replace deprecated linting rules --- analysis_options.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index db53126..20c1b41 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -18,9 +18,9 @@ analyzer: exclude: - "**/*.g.dart" - "**/*.freezed.dart" - strong-mode: - implicit-casts: false - implicit-dynamic: false + language: + strict-raw-types: true + strict-casts: true errors: invalid_annotation_target: ignore # for freezed missing_required_param: warning From 771cbc6e59c799878cb30d053a40e04fbc4c84bf Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Tue, 30 May 2023 22:44:28 +0200 Subject: [PATCH 3/3] chore: add CI workflow --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..46babad --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + merge_group: + branches: [ main ] + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + + - name: Install dependencies + run: dart pub get + + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + + - name: Analyze project source + run: dart analyze + + - name: Run tests with coverage + run: dart run coverage:test_with_coverage + + - uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: coverage/lcov.info + name: Upload to codecov.io + verbose: true