-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8049472
commit 4bd60a5
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -128,24 +128,40 @@ jobs: | |
key: ${{ runner.os }}-node-modules-${{ hashFiles('./yarn.lock') }} | ||
|
||
- name: Install packages | ||
run: yarn install --frozen-lockfile --ignore-engines | ||
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts | ||
|
||
- name: Build package | ||
run: yarn run build | ||
if: matrix.framework != 'vite' | ||
|
||
# PLAYWRIGHT | ||
- uses: actions/cache@v3 | ||
id: playwright-cache | ||
with: | ||
path: ~/.cache/ms-playwright | ||
key: ${{ runner.os }}${{ runner.arch }}-playwright-browsers | ||
|
||
- name: Install Playwright browsers if not cached | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' && matrix.framework == 'vite' | ||
run: npx playwright install chromium webkit firefox | ||
|
||
- name: Install Playwright system dependencies (always) | ||
run: npx playwright install-deps | ||
|
||
- name: Path version to 0.0.0-ci | ||
run: npm version 0.0.0-ci --ignore-scripts --no-git-tag-version | ||
|
||
- name: Verdaccio | ||
run: | | ||
yes | nohup npx verdaccio &>/tmp/verdaccio_log & | ||
# Wait for `verdaccio` to boot | ||
grep -q 'http address' <(tail -f /tmp/verdaccio_log) | ||
# Login so we can publish packages | ||
yes | npx npm-cli-login -u user -p password -e [email protected] -r http://localhost:4873 | ||
npm publish --registry http://localhost:4873 | ||
- name: Pack package (stream-chat-react.tgz) | ||
working-directory: ./test-react-frameworks | ||
run: ./pack-package.sh | ||
if: matrix.framework != 'vite' | ||
|
||
- name: Run ${{ matrix.framework }}.sh test | ||
working-directory: ./test-react-frameworks/${{ matrix.framework }} | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ yarn create vite $FOLDER_NAME --template react-ts | |
|
||
cp ./App.tsx $FOLDER_NAME/src/ | ||
|
||
yarn --cwd ./$FOLDER_NAME add $PACKAGE_PATH | ||
yarn --cwd ./$FOLDER_NAME add [email protected] --registry http://localhost:4873 | ||
|
||
# Vite does not recognize variables missing "VITE_" prefix | ||
# https://vitejs.dev/guide/env-and-mode.html#env-files | ||
|