From cd90eeb3a053edb09084ae4ed38ebd0191ece7e5 Mon Sep 17 00:00:00 2001 From: Anton Arnautov Date: Thu, 25 Aug 2022 16:40:18 +0200 Subject: [PATCH] ci(test-react-frameworks): added CI job --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba433d0358..5a8ab71a6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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'