feat(inbox): connect on iwpv=v2 and track socket-delivered clicks #633
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Courier React 17 Tests | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'yarn' | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Build courier-react-17 packages | |
| run: | | |
| yarn workspace @trycourier/courier-js run build | |
| yarn workspace @trycourier/courier-ui-core run build | |
| yarn workspace @trycourier/courier-ui-inbox run build | |
| yarn workspace @trycourier/courier-ui-toast run build | |
| yarn workspace @trycourier/courier-ui-preferences run build | |
| yarn workspace @trycourier/courier-react-components run build | |
| yarn workspace @trycourier/courier-react-17 run build | |
| - name: Run courier-react-17 tests | |
| run: yarn workspace @trycourier/courier-react-17 run test | |
| env: | |
| JWT: ${{ secrets.JWT }} | |
| USER_ID: ${{ secrets.USER_ID }} | |
| COURIER_REST_URL: ${{ secrets.COURIER_REST_URL }} | |
| COURIER_GRAPHQL_URL: ${{ secrets.COURIER_GRAPHQL_URL }} | |
| INBOX_GRAPHQL_URL: ${{ secrets.INBOX_GRAPHQL_URL }} | |
| INBOX_WEBSOCKET_URL: ${{ secrets.INBOX_WEBSOCKET_URL }} | |
| BRAND_ID: ${{ secrets.BRAND_ID }} | |
| TOPIC_ID: ${{ secrets.TOPIC_ID }} |