Skip to content

Commit

Permalink
ci(test-react-frameworks): added CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Aug 25, 2022
1 parent 21ae4e6 commit cd90eeb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,31 @@ jobs:
- name: 🧪 Validate CommonJS bundle with ${{ matrix.node }}
run: yarn validate-cjs
test-frameworks:
runs-on: ubuntu-latest
strategy:
matrix:
framework: ['next', 'remix', 'vite']
name: Test with framework ${{ matrix.framework }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/cache@v3
with:
path: ./node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('./yarn.lock') }}
- name: Install packates and Playwright
run: |
yarn install --frozen-lockfile --ignore-engines
npx playwright install
npx playwright install-deps
- name: Pack package (stream-chat-react.tgz)
working-directory: ./test-react-frameworks
run: ./pack-package.sh
- name: Run test.sh of ${{ matrix.framework }}
env:
USER_ID: test-user-1
STREAM_API_KEY: ${{ secrets.E2E_APP_KEY }}
USER_TOKEN: ${{ secrets.E2E_TEST_USER_1_TOKEN }}
working-directory: ./test-react-frameworks/${{ matrix.framework }}
run: './${{ matrix.framework }}.sh'

0 comments on commit cd90eeb

Please sign in to comment.