Skip to content

Commit d108758

Browse files
authored
Merge pull request #1 from namib-project/update-dependencies
Update `cbor` dependency, set up GitHub Actions
2 parents 46eba17 + 771cbc6 commit d108758

File tree

3 files changed

+43
-4
lines changed

3 files changed

+43
-4
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
merge_group:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
runs-on: ${{ matrix.os }}
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: dart-lang/setup-dart@v1
21+
22+
- name: Install dependencies
23+
run: dart pub get
24+
25+
- name: Verify formatting
26+
run: dart format --output=none --set-exit-if-changed .
27+
28+
- name: Analyze project source
29+
run: dart analyze
30+
31+
- name: Run tests with coverage
32+
run: dart run coverage:test_with_coverage
33+
34+
- uses: codecov/codecov-action@v3
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
file: coverage/lcov.info
38+
name: Upload to codecov.io
39+
verbose: true

analysis_options.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ analyzer:
1818
exclude:
1919
- "**/*.g.dart"
2020
- "**/*.freezed.dart"
21-
strong-mode:
22-
implicit-casts: false
23-
implicit-dynamic: false
21+
language:
22+
strict-raw-types: true
23+
strict-casts: true
2424
errors:
2525
invalid_annotation_target: ignore # for freezed
2626
missing_required_param: warning

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ environment:
77
sdk: '>=2.17.0 <3.0.0'
88

99
dependencies:
10-
cbor: ^5.0.1
10+
cbor: ^6.0.0
1111
collection: ^1.16.0
1212
meta: ^1.7.0
1313

0 commit comments

Comments
 (0)