Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: merge main into v8 branch #1841

Merged
merged 168 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
5f6cc37
ci: update actions (#1617)
vaind Aug 31, 2023
78eeed5
Add tests for the Android and iOS plugin (#1587)
denrase Sep 4, 2023
d312548
Normalize `data` properties of `SentryUser` and `Breadcrumb` before s…
denrase Sep 4, 2023
1d47eb7
chore(deps): update Cocoa SDK to v8.11.0 (#1626)
github-actions[bot] Sep 4, 2023
280ab9f
Tracing without performance (#1621)
buenaflor Sep 6, 2023
9442665
[starfish] add attributes to db spans data (#1629)
buenaflor Sep 8, 2023
4ad2751
[starfish] add http.request.method attribute to http spans (#1633)
buenaflor Sep 8, 2023
6852b33
Fix Android & iOS CI issues (#1627)
denrase Sep 11, 2023
c9d3212
Disable scope sync for cloned scopes (#1628)
denrase Sep 11, 2023
df7b257
chore: update flutter/scripts/update-android.sh to 6.29.0 (#1630)
github-actions[bot] Sep 11, 2023
9d43f71
Discard empty stack frames (#1625)
denrase Sep 11, 2023
f124efc
Introduce workflow dispatch action for`format` & `fix --apply` (#1575)
denrase Sep 11, 2023
7c822cd
feat/refactor: add cocoa FFI binding (#1631)
vaind Sep 12, 2023
8fe0817
refactor: move native code to its own directory (#1638)
vaind Sep 12, 2023
5aa047a
Log SDK errors to the console if the log level is `fatal` even if `de…
denrase Sep 12, 2023
d53c6fa
Fix autoPerformanceTracingEnabled flag in andorid plugin (#1640)
denrase Sep 12, 2023
bdd1a23
Add Sampling Decision to Trace Envelope Header (#1639)
buenaflor Sep 13, 2023
ffae3e3
chore: update metrics/flutter.properties to 3.13.3 (#1632)
github-actions[bot] Sep 13, 2023
c732386
fix: add missing FFI depdendency (#1642)
vaind Sep 13, 2023
7129102
release: 7.10.1
getsentry-bot Sep 13, 2023
3e4b523
Merge branch 'release/7.10.1'
Sep 13, 2023
03fc2a6
ci: macos integration test (#1645)
vaind Sep 18, 2023
7f75f32
fix: generated cocoa bindings (#1648)
vaind Sep 19, 2023
da14c18
Update uuid (#1647)
ueman Sep 19, 2023
cd16818
chore(deps): update Cocoa SDK to v8.12.0 (#1650)
github-actions[bot] Sep 19, 2023
21f1bf7
Breadcrumbs for file I/O operations (#1649)
denrase Sep 25, 2023
d10745a
ci: don't run CI on markdown updates (#1651)
vaind Sep 25, 2023
afa6e2a
chore(deps): update Flutter SDK (metrics) to v3.13.6 (#1659)
github-actions[bot] Oct 5, 2023
42f6e7e
chore: update flutter/scripts/update-android.sh to 6.30.0 (#1660)
github-actions[bot] Oct 5, 2023
746a779
chore: update flutter/scripts/update-cocoa.sh to 8.13.0 (#1655)
github-actions[bot] Oct 5, 2023
5f3facd
Generate class diagrams (#1646)
denrase Oct 9, 2023
2211a40
Rename `options.devMode` to `options.automatedTestMode` (#1664)
denrase Oct 9, 2023
9d05a05
chore: update flutter/scripts/update-cocoa.sh to 8.13.1 (#1677)
github-actions[bot] Oct 16, 2023
1a93825
chore: update flutter/scripts/update-android.sh to 6.31.0 (#1676)
github-actions[bot] Oct 16, 2023
daa1b33
chore: update metrics/flutter.properties to 3.13.7 (#1674)
github-actions[bot] Oct 16, 2023
2ba6efd
Add dependabot (#1670)
denrase Oct 17, 2023
dfa585e
Bump codecov/codecov-action from 3.1.1 to 3.1.4 (#1680)
dependabot[bot] Oct 18, 2023
64e4616
chore: update flutter/scripts/update-android.sh to 6.32.0 (#1688)
github-actions[bot] Oct 20, 2023
f83bc1d
chore(deps): update Cocoa SDK to v8.14.2 (#1691)
github-actions[bot] Oct 24, 2023
edb78ed
chore: update changelog (#1699)
buenaflor Oct 24, 2023
6d17400
release: 7.11.0
getsentry-bot Oct 24, 2023
26e955b
Merge branch 'release/7.11.0'
Oct 24, 2023
583711d
Bump lints from 2.1.1 to 3.0.0 in /sqflite (#1697)
dependabot[bot] Oct 25, 2023
5e612d5
Bump lints from 2.1.1 to 3.0.0 in /logging (#1696)
dependabot[bot] Oct 25, 2023
d226fd8
Bump lints from 2.1.1 to 3.0.0 in /file (#1694)
dependabot[bot] Oct 25, 2023
677b331
Bump lints from 2.1.1 to 3.0.0 in /dio (#1693)
dependabot[bot] Oct 25, 2023
dc54bfc
feat: profiling for iOS/macOS (#1611)
vaind Oct 27, 2023
ed2ae08
chore: update metrics/flutter.properties to 3.13.9 (#1702)
github-actions[bot] Oct 27, 2023
891efac
chore: log warning if both tracesSampleRate and tracesSampler are set…
buenaflor Oct 27, 2023
0eb0b26
chore: flutter symbol collector CLI tool (#1673)
vaind Oct 30, 2023
481e262
release: 7.12.0
getsentry-bot Oct 31, 2023
30c1193
Merge branch 'release/7.12.0'
Oct 31, 2023
3de8b9b
Add `SentryNavigatorObserver` current route to `event.app.contexts.vi…
denrase Oct 31, 2023
2261c15
fix: coverage not ignoring generated binding.dart (#1707)
buenaflor Oct 31, 2023
955541a
Breadcrumbs for database operations (#1656)
denrase Oct 31, 2023
bd37365
Bump actions/checkout from 3 to 4 (#1683)
dependabot[bot] Nov 3, 2023
bb6945a
Bump ScaCap/action-ktlint from 1.7.1 to 1.8.0 (#1681)
dependabot[bot] Nov 3, 2023
a775d3f
Bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0 (#1682)
dependabot[bot] Nov 3, 2023
9aa4e24
Bump dart-lang/setup-dart from 1.3.0 to 1.6.0 (#1692)
dependabot[bot] Nov 3, 2023
2de6d6f
chore: update flutter/scripts/update-android.sh to 6.33.0 (#1710)
github-actions[bot] Nov 6, 2023
64af39c
build(deps): bump subosito/flutter-action from 2.10.0 to 2.12.0 (#1711)
dependabot[bot] Nov 7, 2023
9f05645
Add `attachScreenshotOnlyWhenResumed` to options (#1700)
denrase Nov 7, 2023
f6f3d25
chore: update flutter/scripts/update-android.sh to 6.33.1 (#1713)
github-actions[bot] Nov 7, 2023
2d4fd8b
chore: update flutter/scripts/update-cocoa.sh to 8.15.0 (#1712)
github-actions[bot] Nov 8, 2023
8a10ab7
chore: update flutter/scripts/update-cocoa.sh to 8.15.1 (#1714)
github-actions[bot] Nov 8, 2023
212d6c7
fix: unsupported types with expando (#1690)
buenaflor Nov 10, 2023
452c92a
chore: update flutter/scripts/update-cocoa.sh to 8.15.2 (#1717)
github-actions[bot] Nov 13, 2023
bdc7f93
Parse message field in `PlatformException.message` (#1716)
ueman Nov 13, 2023
655559e
Bump natiginfo/action-detekt-all from 1.21.0 to 1.23.1 (#1684)
dependabot[bot] Nov 13, 2023
a97ee7c
build(deps): bump natiginfo/action-detekt-all from 1.23.1 to 1.23.3 (…
dependabot[bot] Nov 13, 2023
48adddf
Remove renderer on Dart:io platforms (#1723)
ueman Nov 14, 2023
051e97a
feat: drift apm (#1709)
buenaflor Nov 15, 2023
3e5078c
fix: setting the correct locale to contexts with navigatorKey (#1724)
buenaflor Nov 15, 2023
7748b7c
APM for hive (#1672)
denrase Nov 15, 2023
b4aa843
release: 7.13.0
getsentry-bot Nov 15, 2023
636cb61
Merge branch 'release/7.13.0'
Nov 15, 2023
0026762
Fixes release of drift & hive (#1729)
buenaflor Nov 15, 2023
137698e
release: 7.13.1
getsentry-bot Nov 15, 2023
8609bd8
Merge branch 'release/7.13.1'
Nov 15, 2023
408bdab
Fix formatting and analyze ci issues (#1733)
buenaflor Nov 16, 2023
67a0238
Add drift and hive as craft registry target (#1731)
buenaflor Nov 16, 2023
0caa911
build(deps): bump dart-lang/setup-dart from 1.3.0 to 1.6.0 (#1743)
dependabot[bot] Nov 22, 2023
9de6425
chore(deps): update Android SDK to v6.34.0 (#1746)
github-actions[bot] Nov 22, 2023
683fd34
deps: update `package_info_plus` constraints (#1749)
buenaflor Nov 22, 2023
a6940c1
release: 7.13.2
getsentry-bot Nov 22, 2023
25161f4
Merge branch 'release/7.13.2'
Nov 22, 2023
dd08ebb
build(deps): bump codecov/codecov-action from 3.1.1 to 3.1.4 (#1742)
dependabot[bot] Nov 23, 2023
14950f1
build(deps): bump styfle/cancel-workflow-action from 0.11.0 to 0.12.0…
dependabot[bot] Nov 23, 2023
b6eb979
build(deps): bump actions/checkout from 3 to 4 (#1740)
dependabot[bot] Nov 23, 2023
6fe4fab
build(deps): bump VeryGoodOpenSource/very_good_coverage (#1739)
dependabot[bot] Nov 23, 2023
a971204
chore: update scripts/update-symbol-collector.sh to 1.13.0 (#1737)
github-actions[bot] Nov 23, 2023
041d84d
chore: update scripts/update-symbol-collector.sh to 1.13.0 (#1754)
github-actions[bot] Nov 23, 2023
d4120ac
Add option to opt out of fatal level for automatically collected erro…
denrase Nov 28, 2023
886fc8c
build(deps): bump natiginfo/action-detekt-all from 1.23.3 to 1.23.4 (…
dependabot[bot] Nov 28, 2023
8fb602f
chore(deps): update Cocoa SDK to v8.17.0 (#1761)
github-actions[bot] Nov 28, 2023
9220bb8
build(deps): bump subosito/flutter-action from 2.10.0 to 2.12.0 (#1759)
dependabot[bot] Nov 28, 2023
3f3ef0b
chore: update metrics/flutter.properties to 3.16.1 (#1760)
github-actions[bot] Nov 29, 2023
4829ad3
fix(example): web obfuscation not working (#1766)
buenaflor Nov 29, 2023
f25f207
Add debug_meta to all events (#1756)
stefanosiano Nov 29, 2023
4b3af28
chore: Update README to include drift and hive (#1735)
buenaflor Dec 1, 2023
47664e3
chore: update metrics/flutter.properties to 3.16.2 (#1769)
github-actions[bot] Dec 5, 2023
2d74010
chore(deps): update Cocoa SDK to v8.17.1 (#1771)
github-actions[bot] Dec 5, 2023
d3801f8
Add `Hive` breadcrumbs (#1773)
denrase Dec 5, 2023
13446e1
improvements(example): fix router navigation issue and add improvemen…
buenaflor Dec 11, 2023
d5f600b
build(deps): bump actions/setup-java from 3 to 4 (#1772)
dependabot[bot] Dec 11, 2023
13c328d
docs: add new package release process (#1734)
buenaflor Dec 12, 2023
9d7e862
fix(ci): compile error in example using flutter beta channel (#1783)
buenaflor Dec 13, 2023
e5c9171
chore(deps): update Cocoa SDK to v8.17.2 (#1787)
github-actions[bot] Dec 18, 2023
4b29d6e
chore: update flutter/scripts/update-android.sh to 7.0.0 (#1768)
github-actions[bot] Dec 18, 2023
d914f35
release: 7.14.0
getsentry-bot Dec 18, 2023
d8519f9
Merge branch 'release/7.14.0'
Dec 18, 2023
117d988
Add `ConnectivityIntegration` for web (#1765)
denrase Dec 18, 2023
f27dcdf
Fix changelog (#1791)
denrase Dec 18, 2023
f649a83
build(deps): bump actions/upload-artifact from 3 to 4 (#1789)
dependabot[bot] Dec 19, 2023
f275487
APM for isar (#1726)
denrase Dec 19, 2023
3ad66e4
Bump flutter_lints from 2.0.3 to 3.0.0 in /flutter (#1698)
dependabot[bot] Dec 21, 2023
0118295
chore: update metrics/flutter.properties to 3.16.5 (#1793)
github-actions[bot] Dec 21, 2023
bc29768
Bump lints from 2.1.1 to 3.0.0 in /dart (#1695)
dependabot[bot] Dec 21, 2023
7ea3931
build(deps): bump reactivecircus/android-emulator-runner (#1779)
dependabot[bot] Dec 21, 2023
4be7ec8
build(deps): bump subosito/flutter-action from 2.10.0 to 2.12.0 (#1796)
dependabot[bot] Dec 27, 2023
be08ed1
feat: spotlight support (#1786)
buenaflor Dec 27, 2023
33ed16d
build(deps): bump VeryGoodOpenSource/very_good_coverage (#1795)
dependabot[bot] Dec 27, 2023
730365e
build(deps): bump actions/setup-java from 3 to 4 (#1797)
dependabot[bot] Dec 27, 2023
404d19f
Update Path Filters (#1763)
denrase Dec 27, 2023
bde5f6b
Add app flavor to `flutter_context` (#1799)
ueman Jan 3, 2024
ca7f531
chore(deps): update Android SDK to v7.1.0 (#1788)
github-actions[bot] Jan 3, 2024
f12d09d
Add isar breadcrumbs (#1800)
denrase Jan 8, 2024
1cdcacf
chore: update flutter/scripts/update-cocoa.sh to 8.18.0 (#1803)
github-actions[bot] Jan 8, 2024
d0312c9
Add `beforeScreenshotCallback` to `SentryFlutterOptions` (#1805)
denrase Jan 9, 2024
92562b3
fix typo in docs (#1816)
smart7even Jan 15, 2024
24b6e60
chore: update metrics/flutter.properties to 3.16.7 (#1814)
github-actions[bot] Jan 15, 2024
552c543
Add support for `readTransaction` in `sqflite` (#1819)
denrase Jan 17, 2024
d68bee7
ci: disable some tests temporarily (#1835)
buenaflor Jan 22, 2024
7551d29
release: 7.15.0
getsentry-bot Jan 22, 2024
294b7f0
Merge branch 'release/7.15.0'
Jan 23, 2024
270031a
Accept `Map<String, dynamic>` in `Hint` class (#1807)
denrase Jan 23, 2024
f770c4c
build(deps): bump actions/cache from 3 to 4 (#1833)
dependabot[bot] Jan 23, 2024
e2262ba
Merge branch 'main' into chore/8.0.0-merge-main
buenaflor Jan 23, 2024
7579869
proper changelog
buenaflor Jan 23, 2024
09762eb
fix
buenaflor Jan 23, 2024
41f7809
pin version
buenaflor Jan 23, 2024
ef22c78
format ktlint
buenaflor Jan 23, 2024
fc28d19
fix ktlint
buenaflor Jan 23, 2024
9bc32b1
fix ktlint
buenaflor Jan 23, 2024
0cb7de0
fix ktlint
buenaflor Jan 23, 2024
735cc3f
update detekt baseline
buenaflor Jan 23, 2024
b4b36f5
build(deps): bump dart-lang/setup-dart from 1.6.0 to 1.6.1 (#1817)
dependabot[bot] Jan 23, 2024
4477d2e
chore(deps): update Flutter SDK (metrics) to v3.16.8 (#1825)
github-actions[bot] Jan 23, 2024
2f0d415
feat: tracing without performance for dio (#1837)
IgorKhramtsov Jan 24, 2024
920ec41
chore: reenable testing sentry-dart on windows (#1838)
buenaflor Jan 24, 2024
7e4a1ec
chore: add isar to craft (#1843)
buenaflor Jan 24, 2024
ba60f93
Merge branch 'main' into chore/8.0.0-merge-main
buenaflor Jan 24, 2024
bd1b990
chore(deps): update Cocoa SDK to v8.19.0 (#1844)
github-actions[bot] Jan 25, 2024
4133230
feat: Add sentry widget that includes other sentry widgets (#1846)
buenaflor Jan 30, 2024
e3ef570
build(deps): bump styfle/cancel-workflow-action from 0.12.0 to 0.12.1…
dependabot[bot] Jan 30, 2024
4327577
build(deps): bump reactivecircus/android-emulator-runner (#1848)
dependabot[bot] Jan 30, 2024
21bf0de
build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5 (#1850)
dependabot[bot] Jan 30, 2024
fb77dcf
chore(deps): update Android SDK to v7.2.0 (#1815)
github-actions[bot] Jan 30, 2024
c3e6c82
chore(deps): update Flutter SDK (metrics) to v3.16.9 (#1847)
github-actions[bot] Jan 30, 2024
42b79b3
chore(deps): update Symbol collector CLI to v1.14.0 (#1827)
github-actions[bot] Jan 30, 2024
f2e496d
Update CHANGELOG.md (#1845)
buenaflor Jan 30, 2024
4c78360
chore: update flutter/scripts/update-android.sh to 7.3.0 (#1852)
github-actions[bot] Jan 30, 2024
147ef50
release: 7.16.0
getsentry-bot Jan 30, 2024
8e4eeb3
Merge branch 'release/7.16.0'
Jan 30, 2024
bc5e6c0
Merge branch 'main' into chore/8.0.0-merge-main
buenaflor Jan 31, 2024
3da6e0c
Update CHANGELOG.md
buenaflor Jan 31, 2024
ef6b2a6
Update .craft.yml
buenaflor Jan 31, 2024
3a649d0
Update resources in readme
buenaflor Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ targets:
dio:
file:
sqflite:
hive:
drift:
isar:
- name: github
- name: registry
sdks:
Expand All @@ -20,3 +23,6 @@ targets:
pub:sentry_dio:
pub:sentry_file:
pub:sentry_sqflite:
pub:sentry_drift:
pub:sentry_hive:
pub:sentry_isar:
48 changes: 48 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2
updates:
- package-ecosystem: pub
directory: /dart
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /flutter
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /dio
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /file
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /logging
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: pub
directory: /sqflite
schedule:
interval: weekly
open-pull-requests-limit: 2
versioning-strategy: increase-if-necessary

- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
31 changes: 13 additions & 18 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1
with:
access_token: ${{ github.token }}

analyze:
name: Format, fix & analyze Code
if: ${{ !startsWith(github.ref, 'refs/heads/release/') }}
runs-on: ubuntu-latest
timeout-minutes: 20
defaults:
run:
working-directory: ${{ inputs.package }}
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
if: ${{ inputs.sdk == 'dart' }}
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # pin@v2.10.0
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # pin@v2.12.0
if: ${{ inputs.sdk == 'flutter' }}

- run: ${{ inputs.sdk }} pub get

- run: dart format .

- run: dart fix --apply

# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
# we need to pass the current branch, otherwise we can't commit the changes.
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
- run: ../scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
if: env.GITHUB_HEAD_REF != null

- run: dart format --set-exit-if-changed ./

- name: dart analyze
uses: invertase/github-action-dart-analyzer@cdd8652b05bf7ed08ffce30f425436780f869f13 # pin@v1
uses: invertase/github-action-dart-analyzer@1cda5922c6369263b1c7e2fbe281f69704f4d63e # pin@v2.0.0
with:
annotate: true
fatal-infos: true
Expand All @@ -69,7 +59,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Apply dependency override
if: ${{ inputs.package == 'flutter' }}
working-directory: ${{ inputs.package }}
run: |
sed -i.bak 's|sentry:.*|sentry:\n path: /github/workspace/dart|g' pubspec.yaml
- uses: axel-op/dart-package-analyzer@7a6c3c66bce78d82b729a1ffef2d9458fde6c8d2 # pin@v3
id: analysis
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ on:
- main
- release/**
pull_request:
paths-ignore:
- 'logging/**'
- 'dio/**'
- 'file/**'
- 'sqflite/**'
paths:
- "!**/*.md"
- "!**/class-diagram.svg"
- ".github/workflows/dart.yml"
- "dart/**"

jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1
with:
access_token: ${{ github.token }}

Expand All @@ -39,10 +39,10 @@ jobs:
- os: macos-latest
sdk: beta
steps:
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Test (VM and browser)
run: |
Expand All @@ -68,16 +68,16 @@ jobs:
dart pub get
webdev build

- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # pin@v3
- uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@v3
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
name: sentry
files: ./dart/coverage/lcov.info

- uses: VeryGoodOpenSource/very_good_coverage@84e5b54ab888644554e5573dca87d7f76dec9fb3 # pin@v2.0.0
- uses: VeryGoodOpenSource/very_good_coverage@3b475421464c564c0714d92ce02742bd81fa9eda # pin@v2.2.0
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
path: './dart/coverage/lcov.info'
path: "./dart/coverage/lcov.info"
min_coverage: 85

analyze:
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/diagrams.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: diagrams
on:
workflow_dispatch:

jobs:
diagrams:
runs-on: ubuntu-latest
name: "Create class diagrams of all packages"
steps:
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
with:
sdk: stable

- uses: actions/checkout@v4

- name: dependencies
run: |
dart pub global activate lakos
sudo apt update
sudo apt install graphviz

- name: dart
working-directory: ./dart
run: lakos . -i "{test/**,example/**,example_web/**}" | dot -Tsvg -o class-diagram.svg

- name: flutter
working-directory: ./flutter
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: dio
working-directory: ./dio
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: file
working-directory: ./file
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: sqflite
working-directory: ./sqflite
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: logging
working-directory: ./logging
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: hive
working-directory: ./hive
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

- name: isar
working-directory: ./isar
run: lakos . -i "{test/**,example/**}" | dot -Tsvg -o class-diagram.svg

# Source: https://stackoverflow.com/a/58035262
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch

# actions/checkout fetches only a single commit in a detached HEAD state. Therefore
# we need to pass the current branch, otherwise we can't commit the changes.
# GITHUB_HEAD_REF is the name of the head branch. GitHub Actions only sets this for PRs.
- name: Commit & push
run: ./scripts/commit-code.sh ${{ steps.extract_branch.outputs.branch }} "Update class diagrams"
25 changes: 13 additions & 12 deletions .github/workflows/dio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ on:
- main
- release/**
pull_request:
paths-ignore:
- 'logging/**'
- 'flutter/**'
- 'file/**'
- 'sqflite/**'
paths:
- "!**/*.md"
- "!**/class-diagram.svg"
- ".github/workflows/dio.yml"
- "dart/**"
- "dio/**"

jobs:
cancel-previous-workflow:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # pin@0.11.0
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1
with:
access_token: ${{ github.token }}

Expand All @@ -34,15 +35,15 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
sdk: [stable, beta]
exclude:
- os: windows-latest
- os: windows-latest
sdk: beta
- os: macos-latest
sdk: beta
steps:
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
- uses: dart-lang/setup-dart@ca7e6fee45ffbd82b555a7ebfc236d2c86439f5b # pin@v1
with:
sdk: ${{ matrix.sdk }}
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Test (VM and browser)
run: |
Expand All @@ -51,16 +52,16 @@ jobs:
dart test -p vm --coverage=coverage --test-randomize-ordering-seed=random --chain-stack-traces
dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib

- uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # pin@v3
- uses: codecov/codecov-action@4fe8c5f003fae66aa5ebb77cfd3e7bfbbda0b6b0 # pin@v3
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
name: sentry_dio
files: ./dio/coverage/lcov.info

- uses: VeryGoodOpenSource/very_good_coverage@84e5b54ab888644554e5573dca87d7f76dec9fb3 # pin@v2.0.0
- uses: VeryGoodOpenSource/very_good_coverage@3b475421464c564c0714d92ce02742bd81fa9eda # pin@v2.2.0
if: runner.os == 'Linux' && matrix.sdk == 'stable'
with:
path: './dio/coverage/lcov.info'
path: "./dio/coverage/lcov.info"
min_coverage: 81

analyze:
Expand Down
Loading
Loading