Skip to content

Commit 56757ee

Browse files
committed
Merge branch 'master' into feat/live-location-manager-and-attachments
# Conflicts: # examples/vite/src/App.tsx # src/components/Attachment/Attachment.tsx # src/components/Attachment/AttachmentContainer.tsx # src/components/Attachment/index.ts
2 parents 3b8f2e1 + 22e0702 commit 56757ee

File tree

1,398 files changed

+31948
-87060
lines changed

Some content is hidden

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

1,398 files changed

+31948
-87060
lines changed

.eslintignore

Lines changed: 0 additions & 22 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 230 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Create a report to help us improve
44
title: 'bug:'
55
labels: 'bug, status: unconfirmed'
66
assignees: ''
7-
87
---
98

109
**Describe the bug**
@@ -14,6 +13,7 @@ A clear and concise description of what the bug is.
1413
**To Reproduce**
1514

1615
Steps to reproduce the behavior:
16+
1717
1. Go to '...'
1818
2. Click on '....'
1919
3. Scroll down to '....'
@@ -28,6 +28,7 @@ A clear and concise description of what you expected to happen.
2828
If applicable, add screenshots to help explain your problem.
2929

3030
**Package version**
31+
3132
- stream-chat-react:
3233
- stream-chat-css:
3334
- stream-chat-js:

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ about: Describe a new feature
44
title: ''
55
labels: feature
66
assignees: ''
7-
87
---
98

109
**Motivation**
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Setup
2+
description: Sets up Node and installs dependencies
3+
4+
inputs:
5+
node-version:
6+
description: 'Specify Node version'
7+
required: false
8+
default: '22'
9+
10+
runs:
11+
using: 'composite'
12+
steps:
13+
- name: Setup Node
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ inputs.node-version }}
17+
18+
- name: Set NODE_VERSION env
19+
shell: bash
20+
run: echo "NODE_VERSION=$(node --version)" >> $GITHUB_ENV
21+
22+
- name: Cache dependencies
23+
uses: actions/cache@v4
24+
with:
25+
path: ./node_modules
26+
key: ${{ runner.os }}-${{ env.NODE_VERSION }}-modules-${{ hashFiles('./yarn.lock') }}
27+
28+
- name: Install dependencies
29+
run: yarn install --frozen-lockfile
30+
shell: bash

.github/workflows/ci.yml

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,37 @@
11
name: Test
22

33
on: [push]
4-
env:
5-
NODE_OPTIONS: --max_old_space_size=4096
64

75
jobs:
86
tsc:
97
runs-on: ubuntu-latest
10-
name: Typescript
8+
name: TypeScript
119
steps:
12-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1311

14-
- name: 💾 Cache Dependencies
15-
uses: actions/cache@v3
16-
with:
17-
path: ./node_modules
18-
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
19-
20-
- name: 🔨 Install Dependencies
21-
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
12+
- uses: ./.github/actions/setup-node
2213

2314
- name: 🧪 tsc
24-
run: yarn types --noEmit
15+
run: yarn types
2516

2617
test:
2718
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
node: [16, 18]
31-
name: Test with Node ${{ matrix.node }}
19+
name: Lint & test with Node
3220
steps:
33-
- uses: actions/checkout@v3
34-
- uses: actions/setup-node@v3
35-
with:
36-
node-version: ${{ matrix.node }}
37-
38-
- name: 💾 Cache Dependencies
39-
uses: actions/cache@v3
40-
with:
41-
path: ./node_modules
42-
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
43-
44-
- name: 🔨 Install Dependencies & Build
45-
run: |
46-
yarn install --frozen-lockfile --ignore-engines
47-
yarn build
21+
- uses: actions/checkout@v4
22+
23+
- uses: ./.github/actions/setup-node
24+
25+
- name: Build SDK
26+
run: yarn build
4827

49-
- name: 🧪 Lint and Test with ${{ matrix.node }}
28+
- name: 🧪 Lint and test with Node ${{ env.NODE_VERSION }}
5029
env:
5130
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5231
run: |
5332
yarn lint
5433
yarn coverage
5534
yarn validate-translations
5635
57-
- name: 🧪 Validate CommonJS bundle with ${{ matrix.node }}
36+
- name: 🧪 Validate CommonJS bundle with Node ${{ env.NODE_VERSION }}
5837
run: yarn validate-cjs

0 commit comments

Comments
 (0)