chore(deps-dev): bump vite from 4.5.2 to 4.5.14 #414
Workflow file for this run
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: PR Tests | |
| on: | |
| pull_request: | |
| types: [ opened, synchronize ] | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| # NOTE: We're unable to use `ubuntu-latest` because there are missing linux packages playwright requires. | |
| # Source: https://github.com/microsoft/playwright/issues/34342 | |
| # Downgrading to 22.04 for fixes this issue. | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 9 | |
| run_install: false | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - uses: actions/cache@v4 | |
| name: Setup pnpm cache | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install Dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Install Playwright | |
| run: pnpm exec playwright install --with-deps | |
| - name: Build Packages | |
| run: export NODE_ENV=test && pnpm lerna:build # export NODE_ENV=test tells rollup dotenv to read from .env.test | |
| - name: Run Stencil Checks | |
| run: | | |
| cd packages/web-components | |
| pnpm check | |
| - name: Run Stencil Spec Tests | |
| run: | | |
| cd packages/web-components | |
| pnpm test:spec | |
| - name: Run Stencil e2e Tests | |
| run: | | |
| cd packages/web-components | |
| pnpm test:e2e | |
| env: | |
| TEST_STRIPE_KEY: ${{ secrets.TEST_STRIPE_KEY }} | |
| TEST_STRIPE_ACCOUNT_ID: ${{ secrets.TEST_STRIPE_ACCOUNT_ID }} | |
| TEST_STRIPE_CUSTOMER_ID: ${{ secrets.TEST_STRIPE_CUSTOMER_ID }} | |
| TEST_STRIPE_PLAN_ID: ${{ secrets.TEST_STRIPE_PLAN_ID }} | |
| - name: Run React e2e Tests | |
| run: | | |
| cd packages/react-client | |
| pnpm test:e2e | |
| env: | |
| TEST_STRIPE_KEY: ${{ secrets.TEST_STRIPE_KEY }} | |
| TEST_STRIPE_ACCOUNT_ID: ${{ secrets.TEST_STRIPE_ACCOUNT_ID }} | |
| TEST_STRIPE_CUSTOMER_ID: ${{ secrets.TEST_STRIPE_CUSTOMER_ID }} | |
| TEST_STRIPE_PLAN_ID: ${{ secrets.TEST_STRIPE_PLAN_ID }} | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: stencil-playwright-report | |
| path: packages/web-components/playwright-report/ | |
| retention-days: 7 | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: react-playwright-report | |
| path: packages/react-client/playwright-report/ | |
| retention-days: 7 |