Skip to content

Commit 99ce725

Browse files
authored
Merge pull request #1507 from GetStream/release/v6.0.0
2 parents b78b367 + 5c7fc74 commit 99ce725

File tree

247 files changed

+4081
-3277
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+4081
-3277
lines changed

.github/workflows/dart_code_metrics.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,73 @@
11
name: Dart Code Metrics
22

33
env:
4-
flutter_version: "3.3.3"
4+
flutter_version: "3.7.0"
55
folders: "lib, test"
6-
melos_version: "2.7.1"
76

87
on:
98
pull_request:
9+
paths:
10+
- 'packages/**'
1011
push:
1112
branches:
1213
- master
1314
- develop
1415

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1520
jobs:
1621
check:
1722
name: dart-code-metrics
1823
runs-on: ubuntu-latest
1924
steps:
2025
- name: "Git Checkout"
21-
uses: actions/checkout@v2
26+
uses: actions/checkout@v3
2227
with:
2328
fetch-depth: 0
2429

25-
- name: "Cache Flutter dependencies"
26-
uses: actions/cache@v2
27-
with:
28-
path: /opt/hostedtoolcache/flutter
29-
key: ${{ env.flutter_version }}-flutter
30-
3130
- name: "Install Flutter"
32-
uses: subosito/flutter-action@v1
31+
uses: subosito/flutter-action@v2
3332
with:
33+
cache: true
3434
flutter-version: ${{ env.flutter_version }}
3535

3636
- name: "Install Tools"
37-
run: flutter pub global activate melos ${{ env.melos_version }}
37+
run: flutter pub global activate melos
3838
- name: "Bootstrap Workspace"
3939
run: melos bootstrap
4040

4141
- name: "Stream Chat Metrics"
42-
uses: dart-code-checker/dart-code-metrics-action@v2.0.0
42+
uses: dart-code-checker/dart-code-metrics-action@v3
4343
with:
4444
github_token: ${{ secrets.GITHUB_TOKEN }}
4545
relative_path: 'packages/stream_chat'
4646
folders: ${{ env.folders }}
4747

4848
- name: "Stream Chat Flutter Core Metrics"
49-
uses: dart-code-checker/dart-code-metrics-action@v2.0.0
49+
uses: dart-code-checker/dart-code-metrics-action@v3
5050
with:
5151
github_token: ${{ secrets.GITHUB_TOKEN }}
5252
relative_path: 'packages/stream_chat_flutter_core'
5353
folders: ${{ env.folders }}
5454

5555
- name: "Stream Chat Flutter Metrics"
56-
uses: dart-code-checker/dart-code-metrics-action@v2.0.0
56+
uses: dart-code-checker/dart-code-metrics-action@v3
5757
with:
5858
github_token: ${{ secrets.GITHUB_TOKEN }}
5959
relative_path: 'packages/stream_chat_flutter'
6060
folders: ${{ env.folders }}
6161

6262
- name: "Stream Chat Localizations Metrics"
63-
uses: dart-code-checker/dart-code-metrics-action@v2.0.0
63+
uses: dart-code-checker/dart-code-metrics-action@v3
6464
with:
6565
github_token: ${{ secrets.GITHUB_TOKEN }}
6666
relative_path: 'packages/stream_chat_localizations'
6767
folders: ${{ env.folders }}
6868

6969
- name: "Stream Chat Persistence Metrics"
70-
uses: dart-code-checker/dart-code-metrics-action@v2.0.0
70+
uses: dart-code-checker/dart-code-metrics-action@v3
7171
with:
7272
github_token: ${{ secrets.GITHUB_TOKEN }}
7373
relative_path: 'packages/stream_chat_persistence'

.github/workflows/docusaurus.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ on:
99
- docusaurus/**
1010
jobs:
1111
push_docusaurus:
12+
name: Publish docusaurus docs
1213
runs-on: ubuntu-latest
1314
steps:
14-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
16+
- name: Setup Node 16
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 16
1520
- name: push
1621
uses: GetStream/push-stream-chat-docusaurus-action@main
1722
with:
1823
target-branch: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }}
1924
env:
20-
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
25+
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}

.github/workflows/pana.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ on:
1414
- master
1515
paths-ignore:
1616
- 'docs/**'
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
1721

1822
jobs:
1923
stream_chat:
2024
runs-on: ubuntu-latest
2125
steps:
22-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2327
- uses: axel-op/dart-package-analyzer@v3
2428
id: analysis
2529
with:
@@ -39,7 +43,7 @@ jobs:
3943
stream_chat_persistence:
4044
runs-on: ubuntu-latest
4145
steps:
42-
- uses: actions/checkout@v2
46+
- uses: actions/checkout@v3
4347
- uses: axel-op/dart-package-analyzer@v3
4448
id: analysis
4549
with:
@@ -60,7 +64,7 @@ jobs:
6064
stream_chat_flutter_core:
6165
runs-on: ubuntu-latest
6266
steps:
63-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v3
6468
- uses: axel-op/dart-package-analyzer@v3
6569
id: analysis
6670
with:
@@ -80,7 +84,7 @@ jobs:
8084
stream_chat_flutter:
8185
runs-on: ubuntu-latest
8286
steps:
83-
- uses: actions/checkout@v2
87+
- uses: actions/checkout@v3
8488
- uses: axel-op/dart-package-analyzer@v3
8589
id: analysis
8690
with:

.github/workflows/pr_title.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- synchronize
88
branches:
99
- develop
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
1014

1115
jobs:
1216
conventional_pr_title:

.github/workflows/stream_flutter_workflow.yml

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,20 @@ name: stream_flutter_workflow
22

33
env:
44
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
5-
flutter_version: "3.3.3"
6-
melos_version: "2.7.1"
5+
flutter_version: "3.7.0"
76

87
on:
98
pull_request:
10-
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
9+
paths:
10+
- 'packages/**'
1111
push:
1212
branches:
1313
- master
1414
- develop
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
1519

1620
jobs:
1721
analyze:
@@ -20,21 +24,17 @@ jobs:
2024
runs-on: ubuntu-latest
2125
steps:
2226
- name: "Git Checkout"
23-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2428
with:
2529
fetch-depth: 0
26-
- name: Cache Flutter dependencies
27-
uses: actions/cache@v2
28-
with:
29-
path: /opt/hostedtoolcache/flutter
30-
key: ${{ env.flutter_version }}-flutter
3130
- name: "Install Flutter"
32-
uses: subosito/flutter-action@v1
31+
uses: subosito/flutter-action@v2
3332
with:
33+
cache: true
3434
flutter-version: ${{ env.flutter_version }}
3535
- name: "Install Tools"
3636
run: |
37-
flutter pub global activate melos ${{ env.melos_version }}
37+
flutter pub global activate melos
3838
- name: "Bootstrap Workspace"
3939
run: melos bootstrap --verbose
4040
- name: "Dart Analyze"
@@ -51,21 +51,17 @@ jobs:
5151
timeout-minutes: 15
5252
steps:
5353
- name: "Git Checkout"
54-
uses: actions/checkout@v2
54+
uses: actions/checkout@v3
5555
with:
5656
fetch-depth: 0
57-
- name: Cache Flutter dependencies
58-
uses: actions/cache@v2
59-
with:
60-
path: /opt/hostedtoolcache/flutter
61-
key: ${{ env.flutter_version }}-flutter
6257
- name: "Install Flutter"
63-
uses: subosito/flutter-action@v1
58+
uses: subosito/flutter-action@v2
6459
with:
60+
cache: true
6561
flutter-version: ${{ env.flutter_version }}
6662
- name: "Install Tools"
6763
run: |
68-
flutter pub global activate melos ${{ env.melos_version }}
64+
flutter pub global activate melos
6965
- name: "Bootstrap Workspace"
7066
run: melos bootstrap
7167
- name: "Melos Format"
@@ -75,26 +71,22 @@ jobs:
7571
./.github/workflows/scripts/validate-formatting.sh
7672
7773
test:
78-
runs-on: macos-latest
74+
runs-on: ubuntu-latest
7975
if: github.event.pull_request.draft == false
8076
timeout-minutes: 30
8177
steps:
8278
- name: "Git Checkout"
83-
uses: actions/checkout@v2
79+
uses: actions/checkout@v3
8480
with:
8581
fetch-depth: 0
86-
- name: Cache Flutter dependencies
87-
uses: actions/cache@v2
88-
with:
89-
path: /Users/runner/hostedtoolcache/flutter
90-
key: ${{ env.flutter_version }}-flutter
9182
- name: "Install Flutter"
92-
uses: subosito/flutter-action@v1
83+
uses: subosito/flutter-action@v2
9384
with:
85+
cache: true
9486
flutter-version: ${{ env.flutter_version }}
9587
- name: "Install Tools"
9688
run: |
97-
flutter pub global activate melos ${{ env.melos_version }}
89+
flutter pub global activate melos
9890
flutter pub global activate remove_from_coverage
9991
- name: "Bootstrap Workspace"
10092
run: melos bootstrap
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check Docusaurus docs with vale linter
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
vale:
7+
name: Vale doc linter
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: errata-ai/vale-action@reviewdog
12+
with:
13+
# added, diff_context, file, nofilter
14+
# Default is added: results are filtered for added/modified files. Set to no filter when all files need to be checked.
15+
# More info: https://github.com/errata-ai/vale-action and https://github.com/reviewdog/reviewdog#filter-mode
16+
filter_mode: nofilter
17+
# github-pr-check, github-pr-review, github-check
18+
reporter: github-pr-check
19+
# Set fail_on_error to true to make sure builds fail.
20+
fail_on_error: true
21+
files: '["docusaurus", "README.md"]'
22+
env:
23+
# Required, set by GitHub actions automatically:
24+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.styles/Google/AMPM.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: existence
2+
message: "Use 'AM' or 'PM' (preceded by a space)."
3+
link: 'https://developers.google.com/style/word-list'
4+
level: error
5+
nonword: true
6+
tokens:
7+
- '\d{1,2}[AP]M'
8+
- '\d{1,2} ?[ap]m'
9+
- '\d{1,2} ?[aApP]\.[mM]\.'

.styles/Google/Acronyms.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
extends: conditional
2+
message: "Spell out '%s', if it's unfamiliar to the audience."
3+
link: 'https://developers.google.com/style/abbreviations'
4+
level: suggestion
5+
ignorecase: false
6+
# Ensures that the existence of 'first' implies the existence of 'second'.
7+
first: '\b([A-Z]{3,5})\b'
8+
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
9+
# ... with the exception of these:
10+
exceptions:
11+
- API
12+
- ASP
13+
- CLI
14+
- CPU
15+
- CSS
16+
- CSV
17+
- DEBUG
18+
- DOM
19+
- DPI
20+
- FAQ
21+
- GCC
22+
- GDB
23+
- GET
24+
- GPU
25+
- GTK
26+
- GUI
27+
- HTML
28+
- HTTP
29+
- HTTPS
30+
- IDE
31+
- JAR
32+
- JSON
33+
- JSX
34+
- LESS
35+
- LLDB
36+
- NET
37+
- NOTE
38+
- NVDA
39+
- OSS
40+
- PATH
41+
- PDF
42+
- PHP
43+
- POST
44+
- RAM
45+
- REPL
46+
- RSA
47+
- SCM
48+
- SCSS
49+
- SDK
50+
- SQL
51+
- SSH
52+
- SSL
53+
- SVG
54+
- TBD
55+
- TCP
56+
- TODO
57+
- URI
58+
- URL
59+
- USB
60+
- UTF
61+
- XML
62+
- XSS
63+
- YAML
64+
- ZIP

.styles/Google/Colons.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extends: existence
2+
message: "'%s' should be in lowercase."
3+
link: 'https://developers.google.com/style/colons'
4+
nonword: true
5+
level: warning
6+
scope: sentence
7+
tokens:
8+
- ':\s[A-Z]'

0 commit comments

Comments
 (0)