Skip to content

Commit

Permalink
Merge pull request #1507 from GetStream/release/v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xsahil03x authored Apr 24, 2023
2 parents b78b367 + 5c7fc74 commit 99ce725
Show file tree
Hide file tree
Showing 247 changed files with 4,081 additions and 3,277 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/dart_code_metrics.yaml
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
name: Dart Code Metrics

env:
flutter_version: "3.3.3"
flutter_version: "3.7.0"
folders: "lib, test"
melos_version: "2.7.1"

on:
pull_request:
paths:
- 'packages/**'
push:
branches:
- master
- develop

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: dart-code-metrics
runs-on: ubuntu-latest
steps:
- name: "Git Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "Cache Flutter dependencies"
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ env.flutter_version }}-flutter

- name: "Install Flutter"
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: ${{ env.flutter_version }}

- name: "Install Tools"
run: flutter pub global activate melos ${{ env.melos_version }}
run: flutter pub global activate melos
- name: "Bootstrap Workspace"
run: melos bootstrap

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

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

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

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

- name: "Stream Chat Persistence Metrics"
uses: dart-code-checker/dart-code-metrics-action@v2.0.0
uses: dart-code-checker/dart-code-metrics-action@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
relative_path: 'packages/stream_chat_persistence'
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@ on:
- docusaurus/**
jobs:
push_docusaurus:
name: Publish docusaurus docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: push
uses: GetStream/push-stream-chat-docusaurus-action@main
with:
target-branch: ${{ github.ref == 'refs/heads/master' && 'production' || 'staging' }}
env:
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
12 changes: 8 additions & 4 deletions .github/workflows/pana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,16 @@ on:
- master
paths-ignore:
- 'docs/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
stream_chat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: axel-op/dart-package-analyzer@v3
id: analysis
with:
Expand All @@ -39,7 +43,7 @@ jobs:
stream_chat_persistence:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: axel-op/dart-package-analyzer@v3
id: analysis
with:
Expand All @@ -60,7 +64,7 @@ jobs:
stream_chat_flutter_core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: axel-op/dart-package-analyzer@v3
id: analysis
with:
Expand All @@ -80,7 +84,7 @@ jobs:
stream_chat_flutter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: axel-op/dart-package-analyzer@v3
id: analysis
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
- synchronize
branches:
- develop

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
conventional_pr_title:
Expand Down
48 changes: 20 additions & 28 deletions .github/workflows/stream_flutter_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: stream_flutter_workflow

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
flutter_version: "3.3.3"
melos_version: "2.7.1"
flutter_version: "3.7.0"

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, converted_to_draft]
paths:
- 'packages/**'
push:
branches:
- master
- develop

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
Expand All @@ -20,21 +24,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Git Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ env.flutter_version }}-flutter
- name: "Install Flutter"
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: ${{ env.flutter_version }}
- name: "Install Tools"
run: |
flutter pub global activate melos ${{ env.melos_version }}
flutter pub global activate melos
- name: "Bootstrap Workspace"
run: melos bootstrap --verbose
- name: "Dart Analyze"
Expand All @@ -51,21 +51,17 @@ jobs:
timeout-minutes: 15
steps:
- name: "Git Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ env.flutter_version }}-flutter
- name: "Install Flutter"
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: ${{ env.flutter_version }}
- name: "Install Tools"
run: |
flutter pub global activate melos ${{ env.melos_version }}
flutter pub global activate melos
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Melos Format"
Expand All @@ -75,26 +71,22 @@ jobs:
./.github/workflows/scripts/validate-formatting.sh
test:
runs-on: macos-latest
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
timeout-minutes: 30
steps:
- name: "Git Checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache Flutter dependencies
uses: actions/cache@v2
with:
path: /Users/runner/hostedtoolcache/flutter
key: ${{ env.flutter_version }}-flutter
- name: "Install Flutter"
uses: subosito/flutter-action@v1
uses: subosito/flutter-action@v2
with:
cache: true
flutter-version: ${{ env.flutter_version }}
- name: "Install Tools"
run: |
flutter pub global activate melos ${{ env.melos_version }}
flutter pub global activate melos
flutter pub global activate remove_from_coverage
- name: "Bootstrap Workspace"
run: melos bootstrap
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/vale-doc-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Check Docusaurus docs with vale linter

on: [pull_request]

jobs:
vale:
name: Vale doc linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
with:
# added, diff_context, file, nofilter
# Default is added: results are filtered for added/modified files. Set to no filter when all files need to be checked.
# More info: https://github.com/errata-ai/vale-action and https://github.com/reviewdog/reviewdog#filter-mode
filter_mode: nofilter
# github-pr-check, github-pr-review, github-check
reporter: github-pr-check
# Set fail_on_error to true to make sure builds fail.
fail_on_error: true
files: '["docusaurus", "README.md"]'
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
9 changes: 9 additions & 0 deletions .styles/Google/AMPM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extends: existence
message: "Use 'AM' or 'PM' (preceded by a space)."
link: 'https://developers.google.com/style/word-list'
level: error
nonword: true
tokens:
- '\d{1,2}[AP]M'
- '\d{1,2} ?[ap]m'
- '\d{1,2} ?[aApP]\.[mM]\.'
64 changes: 64 additions & 0 deletions .styles/Google/Acronyms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
extends: conditional
message: "Spell out '%s', if it's unfamiliar to the audience."
link: 'https://developers.google.com/style/abbreviations'
level: suggestion
ignorecase: false
# Ensures that the existence of 'first' implies the existence of 'second'.
first: '\b([A-Z]{3,5})\b'
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
# ... with the exception of these:
exceptions:
- API
- ASP
- CLI
- CPU
- CSS
- CSV
- DEBUG
- DOM
- DPI
- FAQ
- GCC
- GDB
- GET
- GPU
- GTK
- GUI
- HTML
- HTTP
- HTTPS
- IDE
- JAR
- JSON
- JSX
- LESS
- LLDB
- NET
- NOTE
- NVDA
- OSS
- PATH
- PDF
- PHP
- POST
- RAM
- REPL
- RSA
- SCM
- SCSS
- SDK
- SQL
- SSH
- SSL
- SVG
- TBD
- TCP
- TODO
- URI
- URL
- USB
- UTF
- XML
- XSS
- YAML
- ZIP
8 changes: 8 additions & 0 deletions .styles/Google/Colons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: existence
message: "'%s' should be in lowercase."
link: 'https://developers.google.com/style/colons'
nonword: true
level: warning
scope: sentence
tokens:
- ':\s[A-Z]'
Loading

0 comments on commit 99ce725

Please sign in to comment.